summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEkene Madu <36307021+madeken@users.noreply.github.com>2020-03-20 10:12:23 -0700
committerGitHub <noreply@github.com>2020-03-20 10:12:23 -0700
commit9657df184ea0c9d2e13a074a9507e2fbb3bcf1ae (patch)
tree23d49c2ab610d6c4009c50d93bd7fb7d9a8fd76b /docs
parent97ffc590e336b800d346bdf2f4876394bb353f97 (diff)
downloadflatbuffers-9657df184ea0c9d2e13a074a9507e2fbb3bcf1ae.tar.gz
flatbuffers-9657df184ea0c9d2e13a074a9507e2fbb3bcf1ae.tar.bz2
flatbuffers-9657df184ea0c9d2e13a074a9507e2fbb3bcf1ae.zip
Update Grammar.md (#5820)
* Update Grammar.md Some consistency fixes to the grammar file * Some more minor fixes to Grammar.md * Update Grammar.md
Diffstat (limited to 'docs')
-rw-r--r--docs/source/Grammar.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/source/Grammar.md b/docs/source/Grammar.md
index 51cc5f0c..d91e74fc 100644
--- a/docs/source/Grammar.md
+++ b/docs/source/Grammar.md
@@ -35,9 +35,9 @@ enumval\_decl = ident [ `=` integer\_constant ]
metadata = [ `(` commasep( ident [ `:` single\_value ] ) `)` ]
-scalar = integer\_constant | float\_constant
+scalar = boolean\_constant | integer\_constant | float\_constant
-object = { commasep( ident `:` value ) }
+object = `{` commasep( ident `:` value ) `}`
single\_value = scalar | string\_constant
@@ -69,6 +69,6 @@ hex\_float\_constant = `[-+]?0[xX](([.][:xdigit:]+)|([:xdigit:]+[.][:xdigit:]*)|
special\_float\_constant = `[-+]?(nan|inf|infinity)`
-float\_constant = decimal\_float\_constant | hexadecimal\_float\_constant | special\_float\_constant
+float\_constant = dec\_integer\_constant | hex\_integer\_constant | special\_float\_constant
-boolean\_constant = `(true|false)` | (integer\_constant ? `true` : `false`)
+boolean\_constant = `true` | `false`