mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-02 22:58:19 +00:00
Update grammar to reflect required type signature for enum declarations. (#5269)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
343bbe808e
commit
8e7acae013
@@ -14,7 +14,7 @@ attribute\_decl = `attribute` ident | `"`ident`"` `;`
|
|||||||
|
|
||||||
type\_decl = ( `table` | `struct` ) ident metadata `{` field\_decl+ `}`
|
type\_decl = ( `table` | `struct` ) ident metadata `{` field\_decl+ `}`
|
||||||
|
|
||||||
enum\_decl = ( `enum` ident [ `:` type ] | `union` ident ) metadata `{`
|
enum\_decl = ( `enum` ident `:` type | `union` ident ) metadata `{`
|
||||||
commasep( enumval\_decl ) `}`
|
commasep( enumval\_decl ) `}`
|
||||||
|
|
||||||
root\_decl = `root_type` ident `;`
|
root\_decl = `root_type` ident `;`
|
||||||
|
|||||||
Reference in New Issue
Block a user