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

Parser

- 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)

TypeCheck

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

Dependency

- 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.

DGen

- 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
README.md App 6 months ago
dub.json Fixed compilation issue with jcli 9 months ago
tets.d Added testing files 2 years ago
todo1.md I wonder if that worked 2 years ago

README.md

tlang

Official Tristan Language project compiler

Documentation

Docs are available here.

Building

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.

Usage

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

./tlang