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

18 lines
187 B
Racket

#lang brag
8 years ago
b-program : b-line*
8 years ago
b-line: NUMBER b-statement
9 years ago
8 years ago
b-statement: b-rem
| b-print
| b-goto
| b-end
8 years ago
b-rem : REM
8 years ago
b-print : /"print" STRING
9 years ago
8 years ago
b-goto : /"goto" NUMBER
8 years ago
b-end : /"end"