resume in syntaxification of rule

dev-elider
Matthew Butterick 9 years ago
parent 12a04bbc6a
commit 9babe76e3c

@ -1,9 +1,9 @@
#lang br/ragg #lang br/ragg
;; Simple baby example of JSON structure ;; Simple baby example of JSON structure
json: <number | string json: (number | string
| array | array
| object> | object)
number: NUMBER number: NUMBER
string: STRING string: STRING
@ -12,4 +12,4 @@ array: "[" [json ("," json)*] "]"
object: "{" [kvpair ("," kvpair)*] "}" object: "{" [kvpair ("," kvpair)*] "}"
kvpair: ID ":" json kvpair: ID <":"> json

@ -11,7 +11,7 @@
(token 'STRING "'hello world'") (token 'STRING "'hello world'")
"}"))) "}")))
'(json (object "{" '(json (object "{"
(kvpair "message" ":" (json (string "'hello world'"))) (kvpair "message" (json (string "'hello world'")))
"}"))) "}")))

Loading…
Cancel
Save