Fix field parsing

This commit is contained in:
Krzosa Karol
2022-06-01 15:00:27 +02:00
parent 82bb3ae493
commit 364daed1c7
4 changed files with 32 additions and 12 deletions

View File

@@ -43,7 +43,6 @@ For now I don't thing it should be overloadable.
[ ] - Switch
[ ] - More basic types
[ ] - Array of inferred size
[ ] - Lexer: Need to insert scope endings when hitting End of file
[ ] - Add single line lambda expressions
@ideas
@@ -61,6 +60,7 @@ For now I don't thing it should be overloadable.
[x] - Default values in calls
[x] - Resolving calls with default values
[x] - Pass statement
[x] - Lexer: Need to insert scope endings when hitting End of file
[x] - Resolving calls with named args, with indexed args
[x] - Structs
[x] - Struct field access
@@ -109,11 +109,10 @@ int main(){
#endif
result = compile_file("lexer.kl"_s);
FILE *f = fopen("program.c", "w");
assert(f);
fprintf(f, "%.*s", (int)result.len, result.str);
fclose(f);
__debugbreak();
// __debugbreak();
}