Fixing type checking
This commit is contained in:
9
main.cpp
9
main.cpp
@@ -68,10 +68,17 @@ cast(expr: type)
|
||||
convert between typed to other typed
|
||||
check if types compatible
|
||||
|
||||
Stmt:
|
||||
Return - Expression should match lambda return type
|
||||
Expr:
|
||||
Lambda - Arguments, default values should match type
|
||||
ArrayT - Should match type int and be constant or not at all
|
||||
Call - Arguments should match type
|
||||
|
||||
|
||||
@todo
|
||||
[ ] - Fix casting
|
||||
[ ] - Make sure pointer arithmetic works
|
||||
[ ] - Passing down program to compile through command line
|
||||
[ ] - More for loop variations
|
||||
[ ] - Write up on order independent declarations
|
||||
@@ -160,7 +167,7 @@ int main(){
|
||||
|
||||
|
||||
String result = {};
|
||||
#if 0
|
||||
#if 1
|
||||
result = compile_file("globals.kl"_s);
|
||||
printf("%s", result.str);
|
||||
result = compile_file("enums.kl"_s);
|
||||
|
||||
Reference in New Issue
Block a user