Cleanup, There is no decl anymore, Ast_Named
This commit is contained in:
14
lambdas.kl
14
lambdas.kl
@@ -1,11 +1,19 @@
|
||||
/*
|
||||
|
||||
@todo!!!
|
||||
I think it might be better to try doing order indepent decls
|
||||
as well as the tree transformations in the backend code
|
||||
plus some cleanups before adding more complications to the code
|
||||
|
||||
*/
|
||||
|
||||
if_stmt :: (cond: int): int
|
||||
CONSTANT :: 10
|
||||
|
||||
if i := cond, cond + CONSTANT
|
||||
thing := 10
|
||||
if i := thing + cond, cond + CONSTANT
|
||||
return i + CONSTANT
|
||||
else if cond - CONSTANT
|
||||
return cond - CONSTANT
|
||||
return i - CONSTANT
|
||||
else
|
||||
return CONSTANT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user