tlang/source/tlang/compiler/typecheck
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
..
dependency Typechecker 2023-01-15 12:36:54 +02:00
core.d Typechecker 2023-01-15 12:36:54 +02:00
exceptions.d - Removed old unused code 2023-01-12 13:30:53 +02:00
resolution.d Resolution 2023-01-13 11:35:25 +02:00