mirror of https://github.com/tbklang/tlang.git
Official Tristan Language project compiler
https://deavmi.assigned.network/projects/tlang
Tristan B. Velloza Kildaire
b1d168ab44
- Extract the `Variable`'s `Type` object and pass it into the instruction constructor Instruction - `VariableDeclaration` instruction now takes in an instance of `Type` upon construction Dependency - Fixed null pointer exception where Function did not have its `context` set DGen - Added `typeTransform(Type)` to transform the given types into the C equivalent - Variable declarations use `typeTransform()` now - Casting instructions use `typeTransform()` now - Added `emitStdint()` to emit `#include<stdint.h>` as part of header in generated C code - `generateSignature(Function)` now uses `typeTransform()` for the return type emit |
||
---|---|---|
rando | ||
source/tlang | ||
.gitignore | ||
README.md | ||
dub.json | ||
tets.d | ||
todo1.md |
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