mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
Update Grammar.md (#5820)
* Update Grammar.md Some consistency fixes to the grammar file * Some more minor fixes to Grammar.md * Update Grammar.md
This commit is contained in:
parent
97ffc590e3
commit
9657df184e
1 changed files with 4 additions and 4 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue