Basic type conversion when assigning, added + - unary
This commit is contained in:
21
main.cpp
21
main.cpp
@@ -46,6 +46,7 @@ For now I don't thing it should be overloadable.
|
||||
[ ] - Add single line lambda expressions
|
||||
[ ] - Ternary operator
|
||||
[ ] - Constants embeded in structs should be able to refer to other constants in that namespace without prefix
|
||||
[ ] - Converting from U64 token to S64 Atom introduces unnanounced error (negates) - probably need the big int stuff
|
||||
[ ] - Order independent constants in structs
|
||||
[ ] - Can you even have recursive lambdas in structs, other recursive stuff
|
||||
[ ] - Casting to basic types by call S64(x)
|
||||
@@ -102,16 +103,16 @@ int main(){
|
||||
|
||||
String result = {};
|
||||
#if 1
|
||||
result = compile_file("globals.kl"_s);
|
||||
printf("%s", result.str);
|
||||
result = compile_file("enums.kl"_s);
|
||||
printf("%s", result.str);
|
||||
result = compile_file("order1.kl"_s);
|
||||
printf("%s", result.str);
|
||||
result = compile_file("lambdas.kl"_s);
|
||||
printf("%s", result.str);
|
||||
result = compile_file("order2.kl"_s);
|
||||
printf("%s", result.str);
|
||||
// result = compile_file("globals.kl"_s);
|
||||
// printf("%s", result.str);
|
||||
// result = compile_file("enums.kl"_s);
|
||||
// printf("%s", result.str);
|
||||
// result = compile_file("order1.kl"_s);
|
||||
// printf("%s", result.str);
|
||||
// result = compile_file("lambdas.kl"_s);
|
||||
// printf("%s", result.str);
|
||||
// result = compile_file("order2.kl"_s);
|
||||
// printf("%s", result.str);
|
||||
result = compile_file("new_types.kl"_s);
|
||||
printf("%s", result.str);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user