tlang/source/tlang
Tristan B. Velloza Kildaire b1d168ab44 Typechecker
- 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
2023-01-15 12:36:54 +02:00
..
commandline App 2022-12-14 19:49:08 +02:00
compiler Typechecker 2023-01-15 12:36:54 +02:00
misc Utils 2022-12-12 16:39:57 +02:00
testing - Updated test case 2023-01-14 18:45:47 +02:00
app.d App 2022-12-14 19:49:08 +02:00