Change syntax of compound exprs
This commit is contained in:
18
main.cpp
18
main.cpp
@@ -26,13 +26,15 @@
|
||||
|
||||
/// @todo
|
||||
/// [x] - Typespecs should probably be expressions so stuff like would be possible :: *[32]int
|
||||
/// [ ] - Lexer: Need to insert scope endings when hitting End of file
|
||||
/// [ ] - Add single line lambda expressions/
|
||||
/// [ ] - Think about compound expressions, unify with calls - maybe Thing(a=1) instead of Thing{a=1}
|
||||
/// [x] - Initial order independence algorithm
|
||||
/// [ ] - Cleanup the mess with constant bindings
|
||||
/// [ ] - Structs
|
||||
/// [ ] - Enums
|
||||
/// [ ] - For loop
|
||||
/// [ ] - Switch
|
||||
/// [ ] - Think about compound expressions, unify with calls - maybe Thing(a=1) instead of Thing{a=1}
|
||||
/// [ ] - Lexer: Need to insert scope endings when hitting End of file
|
||||
/// [ ] - Add single line lambda expressions/
|
||||
|
||||
|
||||
int main(){
|
||||
@@ -47,12 +49,12 @@ int main(){
|
||||
test_intern_table();
|
||||
lex_test();
|
||||
|
||||
// String result = compile_file("globals.kl"_s);
|
||||
String result = compile_file("structs.kl"_s);
|
||||
// String result = compile_file("order_independent_globals.kl"_s);
|
||||
String result = {};
|
||||
// result = compile_file("order1.kl"_s);
|
||||
// result = compile_file("lambdas.kl"_s);
|
||||
// result = compile_file("order2.kl"_s);
|
||||
result = compile_file("globals.kl"_s);
|
||||
printf("%s", result.str);
|
||||
|
||||
// compile_file("lambdas.kl"_s);
|
||||
// compile_file("globals.kl"_s);
|
||||
__debugbreak();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user