From 4798456df63650d9d4d4f344e0efd01c30fddb23 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Fri, 10 Jul 2015 16:39:47 -0700 Subject: [PATCH] Fixed type specifiers in the grammar document. Change-Id: Ia6b976f0eb6a99d710bcd09cb56339580ff69f5b --- docs/html/md__grammar.html | 2 +- docs/source/Grammar.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/html/md__grammar.html b/docs/html/md__grammar.html index 29a641377..ea899ac9d 100644 --- a/docs/html/md__grammar.html +++ b/docs/html/md__grammar.html @@ -60,7 +60,7 @@ $(document).ready(function(){initNavTree('md__grammar.html','');});

type_decl = ( table | struct ) ident metadata { field_decl+ }

enum_decl = ( enum | union ) ident [ : type ] metadata { commasep( enumval_decl ) }

root_decl = root_type ident ;

-

field_decl = type : ident [ = scalar ] metadata ;

+

field_decl = ident : type [ = scalar ] metadata ;

type = bool | byte | ubyte | short | ushort | int | uint | float | long | ulong | double | string | [ type ] | ident

enumval_decl = ident [ = integer_constant ]

metadata = [ ( commasep( ident [ : scalar ] ) ) ]

diff --git a/docs/source/Grammar.md b/docs/source/Grammar.md index f40a1eb35..cafc05487 100755 --- a/docs/source/Grammar.md +++ b/docs/source/Grammar.md @@ -18,7 +18,7 @@ enumval\_decl ) `}` root\_decl = `root_type` ident `;` -field\_decl = type `:` ident [ `=` scalar ] metadata `;` +field\_decl = ident `:` type [ `=` scalar ] metadata `;` type = `bool` | `byte` | `ubyte` | `short` | `ushort` | `int` | `uint` | `float` | `long` | `ulong` | `double`