Source Files
This directory contains the source files for actual cross-compilation (transpilation) from AST to C code:
- Assert statements (
assert x > 1): assertions.c - Variable assignment (
x = val): assignments.c - Binary operations (
1 + 2, etc.): binops.c - Code blocks: blocks.c
- Command line interface parsing: cli.c
- Comparisons (
a == b,a > b, etc): comparisons.c - Conditionals (
ifstatements): conditionals.c - Variable declarations: declarations.c
- Debug logs (
>> expr): debuglog.c - Enums (
enum): enums.c - General logic for compiling expressions: expressions.c
- Field accesses (
foo.baz) fieldaccess.c - Compilation of entire files: files.c
- Functions, lambdas, and function calls (
func): functions.c - Compilation of C headers: headers.c
- Indexing (
foo[x]andptr[]): indexing.c - Integers: integers.c
- Lists (
[1, 2, 3]): lists.c - Loops (
for,repeat,while,skip,stop): loops.c - Optional values and
none: optionals.c - Pointers (
@and&): pointers.c - Type promotions of values: promotions.c
- Reductions (
(+: nums)): reductions.c - General logic for compiling statements: statements.c
- Structs (
struct): structs.c - Tables (
{1=10, 2=20}): tables.c - Text: text.c
- Types and type metadata: types.c
- Pattern matching (
when x is ...): whens.c