Commit Graph

38 Commits

Author SHA1 Message Date
Krzosa Karol
a58f8aa8b0 Preparing to add a module folder 2022-06-27 09:51:01 +02:00
Krzosa Karol
3af20536fc Getting absolute paths, Ast_Files now compare absolute paths 2022-06-27 09:39:24 +02:00
Krzosa Karol
06dcb718fd Disallow sharing files between modules 2022-06-26 19:20:13 +02:00
Krzosa Karol
4e288dcfab Cleaning up parsing / typechecking of calls slightly, adding any vargs 2022-06-20 09:28:38 +02:00
Krzosa Karol
aa5741203f For loop iterate through arrays and slices 2022-06-19 22:31:59 +02:00
Krzosa Karol
94b820a071 Add switch case statement 2022-06-19 09:31:16 +02:00
Krzosa Karol
071a8de6a4 Compiling with Type_Info 2022-06-18 23:32:34 +02:00
Krzosa Karol
c85fa02750 Add a language.kl module which should contain builtin stuff 2022-06-18 19:42:59 +02:00
Krzosa Karol
649f37cb1b Generating comprehensive type infos 2022-06-18 16:24:54 +02:00
Krzosa Karol
e63dc0322a Foreign variables, exporting some of the info to the c program, compile errors though 2022-06-18 16:01:05 +02:00
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