some progress towards test 2
This commit is contained in:
parent
9c493f543a
commit
87695ebb20
5 changed files with 52 additions and 10 deletions
|
|
@ -11,4 +11,5 @@ PLUS
|
|||
IDENTIFIER y
|
||||
MINUS
|
||||
IDENTIFIER z
|
||||
EOF
|
||||
NEWLINE
|
||||
EOF
|
||||
31
test/lexer/2.out
Normal file
31
test/lexer/2.out
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
KW_DEF
|
||||
IDENTIFIER function_name
|
||||
L_PAREN
|
||||
R_PAREN
|
||||
COLON
|
||||
NEWLINE
|
||||
INDENT_UP
|
||||
KW_IF
|
||||
IDENTIFIER condition
|
||||
COLON
|
||||
NEWLINE
|
||||
INDENT_UP
|
||||
KW_RETURN
|
||||
IDENTIFIER value
|
||||
NEWLINE
|
||||
INDENT_DOWN
|
||||
KW_FOR
|
||||
IDENTIFIER item
|
||||
KW_IN
|
||||
IDENTIFIER list
|
||||
COLON
|
||||
NEWLINE
|
||||
INDENT_UP
|
||||
IDENTIFIER print
|
||||
L_PAREN
|
||||
IDENTIFIER item
|
||||
R_PAREN
|
||||
NEWLINE
|
||||
INDENT_DOWN
|
||||
INDENT_DOWN
|
||||
EOF
|
||||
Loading…
Add table
Add a link
Reference in a new issue