|
|
@ -9,7 +9,8 @@
|
|
|
|
["\n" (token 'NEWLINE lexeme)]
|
|
|
|
["\n" (token 'NEWLINE lexeme)]
|
|
|
|
[whitespace (token lexeme #:skip? #t)]
|
|
|
|
[whitespace (token lexeme #:skip? #t)]
|
|
|
|
[(from/stop-before "rem" "\n") (token 'REM lexeme)]
|
|
|
|
[(from/stop-before "rem" "\n") (token 'REM lexeme)]
|
|
|
|
[(:or "print" "goto" "end" "+" ":") lexeme]
|
|
|
|
[(:or "print" "goto" "end"
|
|
|
|
|
|
|
|
"+" ":" ";") (token lexeme lexeme)]
|
|
|
|
[digits (token 'INTEGER (string->number lexeme))]
|
|
|
|
[digits (token 'INTEGER (string->number lexeme))]
|
|
|
|
[(:or (:seq (:? digits) "." digits)
|
|
|
|
[(:or (:seq (:? digits) "." digits)
|
|
|
|
(:seq digits "."))
|
|
|
|
(:seq digits "."))
|
|
|
|