Fix field parsing
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user