Official Tristan Language project compiler https://deavmi.assigned.network/projects/tlang
Go to file
Tristan B. Velloza 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)
2022-12-16 18:04:57 +02:00
rando Fuck this is complicated (2/2) 2021-06-06 22:46:06 +02:00
source/tlang Data 2022-12-16 18:04:57 +02:00
.gitignore Disabled regex in .gitignore for now (it was causing issues) 2022-12-12 16:40:15 +02:00
README.md App 2022-12-14 19:49:08 +02:00
dub.json Fixed compilation issue with jcli 2022-08-23 16:33:49 +02:00
tets.d Added testing files 2021-11-02 15:14:03 +02:00
todo1.md I wonder if that worked 2021-06-07 14:27:36 +02:00

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