Working on euler using the compiler + squashing bugs

This commit is contained in:
Krzosa Karol
2022-06-08 09:53:13 +02:00
parent 5744da8899
commit 87d6737a10
7 changed files with 116 additions and 102 deletions

View File

@@ -77,10 +77,10 @@ Expr:
@todo
[ ] - Arrays with size passed
[ ] - Switch
[ ] - Values inited to 0 by default
[ ] - Add c string
[ ] - Some way to take slice of data
[ ] - slices should be properly displayed in debugger
[ ] - Comma notation when declaring variables thing1, thing2: S32
[ ] - Array of inferred size
@@ -114,6 +114,8 @@ Expr:
[x] - Emitting #line
[x] - Making sure debugger works
[x] - We need ++ -- operators
[x] - Arrays with size passed
[x] - Values inited to 0 by default
[x] - Some way to call foreign functions
[x] - We are parsing wrong here: (t.str=(&string_to_lex.str)[i]);
[x] - Test new operators, add constant eval for them
@@ -180,7 +182,7 @@ int main(int argument_count, char **arguments){
emit_line_directives = false;
emit_line_directives = true;
if(argument_count > 1){
Scratch scratch;
String name = string_fmt(scratch, "%s.kl", arguments[1]);