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.
31 lines
697 B
Racket
31 lines
697 B
Racket
#lang brag
|
|
|
|
txtadv-program : verb-section everywhere-section things-section places-section start-section
|
|
|
|
verb-section : "===VERBS===" verb-item+
|
|
|
|
verb-item : verb-name+ s-exp
|
|
|
|
verb-name : [","] ID ["_"]
|
|
|
|
everywhere-section : "===EVERYWHERE===" id-desc+
|
|
|
|
things-section : "===THINGS===" thing-item+
|
|
|
|
thing-item : DASHED-NAME id-desc+
|
|
|
|
places-section : "===PLACES===" place-item+
|
|
|
|
place-item : DASHED-NAME place-descrip place-items id-desc+
|
|
|
|
place-descrip : STRING ; `place-desc` is already used in expander
|
|
|
|
place-items : "[" place-name* "]" ; `place-things` is already used
|
|
|
|
place-name : [","] ID
|
|
|
|
start-section : "===START===" place-name
|
|
|
|
id-desc : ID s-exp
|
|
|
|
s-exp : ID | STRING | "(" s-exp* ")" |