resume in syntaxification of rule
This commit is contained in:
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…
Reference in New Issue
Block a user