test new syntax
parent
a5ba1f7fdf
commit
867b84f16e
@ -0,0 +1,16 @@
|
||||
#lang brag
|
||||
|
||||
;; Simple baby example of JSON structure
|
||||
json ::= number | string
|
||||
| array
|
||||
| object
|
||||
|
||||
number ::= NUMBER
|
||||
|
||||
string ::= STRING
|
||||
|
||||
array ::= "[" [json ("," json)*] "]"
|
||||
|
||||
object ::= "{" [kvpair ("," kvpair)*] "}"
|
||||
|
||||
kvpair ::= ID ":" json
|
Loading…
Reference in New Issue