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 990b8a7d87 Parser
- Added a new default parameter to `parseTypedDeclaration()` which is `onlyType=false`. If one sets this to `true` then we will parse the type till the identifier (what would be it) but stopping on the identifier and returning a bogus `TypedEntity` with a fake name string but with the type string intact
- `parseCast()` now uses `parseTypedDeclaration(onlyType=true)` - this should help us when we want to cast for arrays or pointers (where all that logic is in `parseTypedDeclaration()`).

Test cases

- Added a complex `cast(<expr>)` with a pointer - this should work in upstream `pointers` branch
- File name is `simple_cast_complex_type.t`
1 year ago
.github/workflows Ensure that 'simple_literals4.t' fails as it tests a range violation during coercion 1 year ago
rando Fuck this is complicated (2/2) 3 years ago
source/tlang Parser 1 year ago
.gitignore .gitignore 1 year ago
README.md Update README.md 1 year ago
dub.json DUB configuration 1 year ago
extern_test.sh Check 1 year ago
tets.d Added testing files 3 years ago
texterned.c - Added `texterned.c` for later extern testing 1 year ago
todo1.md I wonder if that worked 3 years ago

README.md

tlang

D

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