Official Tristan Language project compiler
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Tristan B. V. Kildaire 8972a277f3 Data
- Added new type `VariableParameter` for function parameters


- Generate instances of `VariableParameter` instead of just `Variable` (direct) for function parameters
- Set the Container of the VariableParameter(s) of a function definition to that of the Function (definition)


- Updated type to `VariableParameter` (just to be more specific and clear)


- Added branch to pool VariableParameter but NOT add them as dnode's (that would cause code gen to emit declarations for parameters - which is something we do not want). Set as visited, pool for lookup and set Context.


- Added variable parameter symbol mapping to `generateSignature()` for function signatures

Variables (special DNode type)

- Added note, do we need these?

Test cases

- Updated test case `simple_function_decls.t` to test parameter variable usage (assignment and expression usage)
6 months ago
rando Fuck this is complicated (2/2) 2 years ago
source/tlang Data 6 months ago
.gitignore Disabled regex in .gitignore for now (it was causing issues) 6 months ago App 6 months ago
dub.json Fixed compilation issue with jcli 9 months ago
tets.d Added testing files 2 years ago I wonder if that worked 2 years ago


Official Tristan Language project compiler


Docs are available here.


To build you will need dmd and dub installed. You can then run the following:

dub test --coverage
dub build

The first command is optional but you want to make sure the compiler is working so you may as well run all the unit tests - it won't take too long.


A list of all commands can be found by typing in the following: