Official Tristan Language project compiler
Go to file
Tristan B. Velloza Kildaire 0b3a06efde
🐞 Bugfix: expect(string) should throw ParserException atleast (#20)
* Parser

- Removed commented-out code

* Parser

- Removed `isUnitTest` variable and how `expect(string)` relies on it

* Parser

- Now throw a new `ParserException` instead of a `TError` when calling `expect(string)`

* Parser

- Made `expect(string)` not static

* TypeChecker

- Implemented `expect(string)` which throws a `TypeCheckerException` in a similar fashion to `Parser`'s `expect(string)`

* Dependency

- Implemented `expect(string)` which throws a `DependencyException` in a similar fashion to `Parser`'s `expect(string)`

Exceptions (dependency)

- Added enum member `GENERAL_ERROR` to `DependencyError`

* Parser (unit tests)

- Made more specific
2023-07-16 20:33:51 +02:00
.github/workflows 🐞️ Functions: Expressionless return and enforcing requirement (#7) 2023-07-11 21:43:21 +02:00
branding Array support (#1) 2023-04-20 11:21:50 +02:00
rando Fuck this is complicated (2/2) 2021-06-06 22:46:06 +02:00
source/tlang 🐞 Bugfix: expect(string) should throw ParserException atleast (#20) 2023-07-16 20:33:51 +02:00
.gitignore 🐞️ Functions: Expressionless return and enforcing requirement (#7) 2023-07-11 21:43:21 +02:00
README.md Update README.md 2023-03-26 14:13:56 +02:00
dub.json DUB configuration 2023-02-05 12:27:14 +02:00
extern_test.sh Check 2023-01-28 18:12:49 +02:00
macro_ast_replacemenet.png 🧠 Feature: Meta-programming engine (#10) 2023-05-29 17:02:28 +02:00
macro_ast_replacemenet.xcf 🧠 Feature: Meta-programming engine (#10) 2023-05-29 17:02:28 +02:00
macro_ast_replacement_sizeof_example.png 🧠 Feature: Meta-programming engine (#10) 2023-05-29 17:02:28 +02:00
macro_ast_replacement_sizeof_example.xcf 🧠 Feature: Meta-programming engine (#10) 2023-05-29 17:02:28 +02:00
malloc_test.sh Pointer support (#2) 2023-04-17 16:50:11 +02:00
tets.d Added testing files 2021-11-02 15:14:03 +02:00
texterned.c - Added `texterned.c` for later extern testing 2023-01-19 17:52:46 +02:00
todo1.md I wonder if that worked 2021-06-07 14:27:36 +02:00
wip.txt Array support (#1) 2023-04-20 11:21:50 +02:00

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