Add var args for using printf

This commit is contained in:
Krzosa Karol
2022-06-07 11:16:30 +02:00
parent b7df759d9d
commit a59283903b
8 changed files with 906 additions and 25 deletions

View File

@@ -77,11 +77,9 @@ Expr:
@todo
[ ] - We need ++ -- operators
[ ] - Passing down program to compile through command line
[ ] - Switch
[ ] - Arrays with size passed
[ ] - Some way to call foreign functions
[ ] - Comma notation when declaring variables thing1, thing2: S32
[ ] - Array of inferred size
@@ -107,9 +105,11 @@ Expr:
[ ] - Rust like enum where you associate values(other structs) with keys
[ ] - Compound that zeros values - .{} , Compound that assumes defaults from struct definition - {}
[ ] - Inject stack traces into the program
[ ] - Rewrite constants to embed lambda, types, structs etc.? ???
[ ] - Rewrite constants to embed lambda, types, structs etc.? ???
@donzo
[x] - We need ++ -- operators
[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
[x] - lvalue, rvalue concept so we cant assign value to some arbitrary weird expression