Working on the lexer, handling indentation and scopes
This commit is contained in:
16
lambdas.kl
16
lambdas.kl
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
/*begin of file*/ thing // indent 2 == error
|
||||
|
||||
|
||||
add_10 :: (size: int): int // scope 0
|
||||
add_20 :: (new_size: int): int // up scope 2
|
||||
return 20 // up scope 2
|
||||
// down scope
|
||||
// down scope
|
||||
// scope 0
|
||||
thing
|
||||
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
add_10 :: (size: int): int
|
||||
add_20 :: (new_size: int): int
|
||||
|
||||
Reference in New Issue
Block a user