Commit Graph

28 Commits

Author SHA1 Message Date
Krzosa Karol
8ead876d90 Before adding Any type 2022-06-18 14:38:53 +02:00
Krzosa Karol
499faac256 Add error messages when file not found + error position 2022-06-18 09:58:48 +02:00
Krzosa Karol
3ba8bd08fb Stage arena is not a sub 2022-06-18 09:53:40 +02:00
Krzosa Karol
28f89def4b Fixing printing / memory issues, Add stage arena, printing types in errors properly 2022-06-18 09:50:34 +02:00
Krzosa Karol
5345894e3e Cleanup Slice and Tuple generation 2022-06-16 12:16:15 +02:00
Krzosa Karol
8b470fbf34 Squashing file write bugs 2022-06-15 12:11:34 +02:00
Krzosa Karol
cdeebfb8f9 Ported unicode conversions 2022-06-15 10:51:45 +02:00
Krzosa Karol
aab89ffada Add static and runtime assert 2022-06-15 10:30:33 +02:00
Krzosa Karol
58e919ef69 else if into elif 2022-06-14 21:25:02 +02:00
Krzosa Karol
f885abe3f5 -> Operator has very low precedence, size_of, align_of, length_of expressions 2022-06-14 13:50:59 +02:00
Krzosa Karol
946e4082cc Working on slices, builtin stuff feels wanky, rewrite gen_simple_decl to
generate string
2022-06-14 12:00:48 +02:00
Krzosa Karol
4b16439a14 More work on modules, Ast_Module, Ast_File and Ast_Scope got unified 2022-06-13 14:04:47 +02:00
Krzosa Karol
bcd825c154 New concept of AST_MODULE, Ast_File and Ast_Module are now both scopes.
Concept of loading and importing.
2022-06-13 13:39:31 +02:00
Krzosa Karol
b0553c38cf New module scheme 2022-06-13 10:49:10 +02:00
Krzosa Karol
31c2c00452 Rearrange # flags, Add Windows.kl 2022-06-12 19:41:31 +02:00
Krzosa Karol
cd29798c1d AST_STRICT for type aliases 2022-06-12 13:09:37 +02:00
Krzosa Karol
526967abbd token_match_pound 2022-06-12 12:14:15 +02:00
Krzosa Karol
cd3098da45 Add char * which is supposed to work like in C and int 2022-06-12 11:58:36 +02:00
Krzosa Karol
decab135b8 Referencing other packages works!! 2022-06-10 19:25:57 +02:00
Krzosa Karol
ab663d0b01 Getting packages out of resolve_name 2022-06-10 17:07:58 +02:00
Krzosa Karol
957dbbd5cc Fix not top level ast's getting into ordered list. Delete parent nodes 2022-06-10 16:47:49 +02:00
Krzosa Karol
e2d07923c8 Add parent_scope on all nodes 2022-06-10 16:12:47 +02:00
Krzosa Karol
d5d9911f3e More work on packages 2022-06-10 11:05:08 +02:00
Krzosa Karol
b0077fe9df Basic resolving, codegen with packages 2022-06-10 10:35:10 +02:00
Krzosa Karol
fbe911d267 Complete rework, adding packages 2022-06-09 21:30:52 +02:00
Krzosa Karol
c3e071b3bb Squashing lexer bugs related to EOF 2022-06-07 21:18:49 +02:00
Krzosa Karol
759825172c Printf is working !! 2022-06-07 11:27:09 +02:00
Krzosa Karol
a59283903b Add var args for using printf 2022-06-07 11:16:30 +02:00