mirror of https://github.com/lark-parser/lark.git
22 lines
430 B
Plaintext
22 lines
430 B
Plaintext
?start: value
|
|
|
|
?value: object
|
|
| array
|
|
| string
|
|
| SIGNED_NUMBER -> number
|
|
| "true" -> true
|
|
| "false" -> false
|
|
| "null" -> null
|
|
|
|
array : "[" [value ("," value)*] "]"
|
|
object : "{" [pair ("," pair)*] "}"
|
|
pair : string ":" value
|
|
|
|
string : ESCAPED_STRING
|
|
|
|
%import common.ESCAPED_STRING
|
|
%import common.SIGNED_NUMBER
|
|
%import common.WS
|
|
|
|
%ignore WS
|