testing lib with json
This commit is contained in:
19
other/json/json.lark
Normal file
19
other/json/json.lark
Normal file
@ -0,0 +1,19 @@
|
||||
?value: dict
|
||||
| list
|
||||
| string
|
||||
| SIGNED_NUMBER -> number
|
||||
| "true" -> true
|
||||
| "false" -> false
|
||||
| "null" -> null
|
||||
|
||||
list: "[" [value ("," value)*] "]"
|
||||
|
||||
dict: "{" [pair ("," pair)*] "}"
|
||||
pair: string ":" value
|
||||
|
||||
string: ESCAPED_STRING
|
||||
%import common.ESCAPED_STRING
|
||||
%import common.SIGNED_NUMBER
|
||||
|
||||
%import common.WS
|
||||
%ignore WS
|
Reference in New Issue
Block a user