hiding works for literals and tokens ; tests pass ; resume in ids
parent
44d25659de
commit
2d44750221
@ -0,0 +1,4 @@
|
||||
#lang br/ragg
|
||||
|
||||
;; Simple baby example of JSON structure
|
||||
json: ID <":"> ID
|
@ -1,15 +1,17 @@
|
||||
#lang br/ragg
|
||||
|
||||
;; Simple baby example of JSON structure
|
||||
json: (number | string
|
||||
json: number
|
||||
| string
|
||||
| array
|
||||
| object)
|
||||
| object
|
||||
|
||||
number: NUMBER
|
||||
|
||||
string: STRING
|
||||
|
||||
array: "[" [json ("," json)*] "]"
|
||||
|
||||
object: "{" [kvpair ("," kvpair)*] "}"
|
||||
object: <"{"> [kvpair ("," kvpair)*] <"}">
|
||||
|
||||
kvpair: ID <":"> json
|
||||
kvpair: <ID> <":"> json
|
||||
|
Loading…
Reference in New Issue