working on generating an AST with scope and stuff
This commit is contained in:
16
test2.grnd
16
test2.grnd
@@ -1,4 +1,12 @@
|
||||
set &x 0
|
||||
@loop
|
||||
add $x 1 &x
|
||||
jump %loop
|
||||
set &myName "Nathaniel"
|
||||
set &myAge 10
|
||||
|
||||
fun -list !split -string &str -string &determiner
|
||||
set &x 2
|
||||
set &y 5
|
||||
add $x $y &x
|
||||
stdlnout $x
|
||||
endfun
|
||||
|
||||
# should error
|
||||
stdlnout $x
|
Reference in New Issue
Block a user