Last active
December 15, 2015 13:39
-
-
Save aisk/5268640 to your computer and use it in GitHub Desktop.
json parser rules for bnfc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VObject. Value ::= "{" [Item] "}" ; | |
ObjItem. Item ::= String ":" Value ; | |
separator Item "," ; | |
terminator Item "" ; | |
VArray. Value ::= "[" [Value] "]" ; | |
separator Value "," ; | |
terminator Value "" ; | |
VInt. Value ::= Integer ; | |
VDouble. Value ::= Double ; | |
VString. Value ::= String ; | |
VTrue. Value ::= "true" ; | |
VFalse. Value ::= "false" ; | |
VNull. Value ::= "null" ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "aisk", | |
"Age": 17, | |
"hack": true, | |
"bug": null, | |
"word": {"Hello": "World"} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment