mirror of https://github.com/tbklang/tlang.git
Official Tristan Language project compiler
https://deavmi.assigned.network/projects/tlang
Tristan B. Velloza Kildaire
065c8d5816
- `TypeCheckerException` now inherits from `TError` - `TypeCheckerException` now produces a neat error message using an enum `TypecheckError` - Added new sub-class `TypeMismatchException` to be used when two types do not match TypeChecker - Hoisted out the coercion code into two methods, `isCoercibleRange` and `attemptCoercion` - Make both variabel declarations (with assignments) and standlaone variable assignments call the `attemptCoercion()` method when the call to `isSameType(Type t1, Type t2)` returns `false` Test cases - Added new test case `simple_literals2.t` |
||
---|---|---|
rando | ||
source/tlang | ||
.gitignore | ||
README.md | ||
dub.json | ||
extern_test.sh | ||
tets.d | ||
texterned.c | ||
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