add ? quantifier
parent
9171af7930
commit
bfcdbbce58
@ -0,0 +1,17 @@
|
||||
#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