Commit graph

11 commits

Author SHA1 Message Date
Janis cbbbb7989a array types can now use an expression to define the array size
this was surprisingly non-trivial
2024-09-16 17:18:23 +02:00
Janis 888517f2ea soooo many thigns in need to commit more often
also, types exist in the ast, but are interned after parsing
refs and typerefs are resolved
true and false in the intern pool, need to add them to primaryexpr
structs in the internpool take a decl to differentiate struct types of the same
name
field access postfix expr? also nesting postfix expr (e.g. var[1][2])
arrays can only be specified with integral constants as length

fixes:
sinttype and uinttype store bits inline in item.index correctly
mut/var decl assignment? have correct doc strings
let/var symbol is inserted after the assignment expr, so that the expr can still
use
now-shadowed variables
structs can have fields of type pointer-to-self (ast)
lots of wrong-cases in node children getting
2024-09-15 00:38:50 +02:00
Janis a565c1e1e9 parsing struct definitions in ast 2024-09-14 13:09:17 +02:00
Janis 568c3b2fa4 calling functions 2024-09-02 16:03:12 +02:00
Janis 4b432f404b branching? yay? 2024-09-01 21:31:09 +02:00
Janis 6bab60d168 if-else ast 2024-08-30 23:55:13 +02:00
Janis 9194e35851 remove comments from asm 2024-08-30 21:55:16 +02:00
Janis e9335d3fc5 something is wrong, but typechecking 2024-08-30 17:34:26 +02:00
Janis 70644ede3e fixes, rewrote liveness gen a bit 2024-08-30 16:22:53 +02:00
Janis 9f0e2c4a31 mir to asm translation WORKS!! 2024-08-29 21:34:05 +02:00
Janis 02be9bdc26 simple lexing error reporting 2024-08-09 18:58:26 +02:00