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