Working on arrays

This commit is contained in:
Krzosa Karol
2022-06-07 21:19:06 +02:00
parent c3e071b3bb
commit b65a5f78bf
6 changed files with 48 additions and 11 deletions

View File

@@ -80,7 +80,7 @@ Expr:
[ ] - Arrays with size passed
[ ] - Switch
[ ] - Values inited to 0 by default
[ ] - Emitting #line
[ ] - Add c string
[ ] - Comma notation when declaring variables thing1, thing2: S32
[ ] - Array of inferred size
@@ -111,6 +111,8 @@ Expr:
[ ] - Conditional compilation #if
@donzo
[x] - Emitting #line
[x] - Making sure debugger works
[x] - We need ++ -- operators
[x] - Some way to call foreign functions
[x] - We are parsing wrong here: (t.str=(&string_to_lex.str)[i]);
@@ -178,7 +180,7 @@ int main(int argument_count, char **arguments){
emit_line_directives = false;
if(argument_count > 1){
Scratch scratch;
String name = string_fmt(scratch, "%s.kl", arguments[1]);