Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
badw-it
DHParser
Commits
092ffc22
Commit
092ffc22
authored
Mar 28, 2019
by
Eckhart Arnold
Browse files
- examples/json/json.ebnf: small adjustments
parent
b416a402
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/json/json.ebnf
View file @
092ffc22
...
...
@@ -8,7 +8,7 @@
@ whitespace = vertical # implicit whitespace, includes any number of line feeds
@ literalws = right # literals have implicit whitespace on the right hand side
@ comment = /\/\/.*/
# comments range from a '#'
-character
to the end of the line
@ comment = /
(?:
\/\/
|#)
.*/ # comments range from a '#'
odr '//' sign
to the end of the line
@ ignorecase = False # literals and regular expressions are case-sensitive
@ drop = whitespace, token # drop tokens and whitespace
...
...
@@ -27,7 +27,7 @@ member = string ":" element
array = "[" [value { "," value }] "]"
string = `"` CHARACTERS `"` ~
number = INT FRAC EXP ~
bool = /true/~ | /false/~
bool = /true/~ | /false/~
# use regexes so values are not dropped as tokens
null = "null"
#######################################################################
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment