You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket-demo/basic-demo/parser.rkt

20 lines
219 B
Racket

#lang brag
b-program : b-line*
b-line: @b-line-number b-statement
b-line-number : NUMBER
b-statement: b-rem
| b-print
| b-goto
| b-end
b-rem : REM
b-print : /"print" STRING
b-goto : /"goto" NUMBER
b-end : /"end"