tlang/source/tlang/compiler
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
..
codegen Typechecker 2023-01-15 12:36:54 +02:00
docgen - Added for future use 2023-01-11 11:34:55 +02:00
parsing Instruction 2023-01-14 18:40:08 +02:00
symbols Instruction 2023-01-14 18:40:08 +02:00
typecheck Typechecker 2023-01-15 12:36:54 +02:00
compiler.d App 2022-12-14 19:49:08 +02:00
lexer.d Lexer 2022-12-19 15:37:55 +02:00