resume in syntaxification of rule
This commit is contained in:
parent
12a04bbc6a
commit
9babe76e3c
|
@ -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'")))
|
||||
"}")))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user