aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2017-08-14 11:58:25 -0700
committerWouter van Oortmerssen <aardappel@gmail.com>2017-08-14 11:58:25 -0700
commitad0f48d7e798a16447c43185666ed06030b94304 (patch)
tree662faa934334d1719edabee7ad5ec46661fb58f2 /docs
parent801e1b76995ade64fd89d17a7628b11c75d79967 (diff)
downloadflatbuffers-ad0f48d7e798a16447c43185666ed06030b94304.tar.gz
Fixed up grammar.md with rpc's and new scalar types.
Change-Id: Ie2965f48810bf24cccf098b69a9d471583efc3bf
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/source/Grammar.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/source/Grammar.md b/docs/source/Grammar.md
index b6b48c08..e31970b9 100755
--- a/docs/source/Grammar.md
+++ b/docs/source/Grammar.md
@@ -4,7 +4,7 @@ Grammar of the schema language {#flatbuffers_grammar}
schema = include*
( namespace\_decl | type\_decl | enum\_decl | root\_decl |
file_extension_decl | file_identifier_decl |
- attribute\_decl | object )*
+ attribute\_decl | rpc\_decl | object )*
include = `include` string\_constant `;`
@@ -21,9 +21,15 @@ root\_decl = `root_type` ident `;`
field\_decl = ident `:` type [ `=` scalar ] metadata `;`
+rpc\_decl = `rpc_service` ident `{` rpc\_method+ `}`
+
+rpc\_method = ident `(` ident `)` `:` ident metadata `;`
+
type = `bool` | `byte` | `ubyte` | `short` | `ushort` | `int` | `uint` |
-`float` | `long` | `ulong` | `double`
- | `string` | `[` type `]` | ident
+`float` | `long` | `ulong` | `double` |
+`int8` | `uint8` | `int16` | `uint16` | `int32` | `uint32`| `int64` | `uint64` |
+`float32` | `float64` |
+`string` | `[` type `]` | ident
enumval\_decl = ident [ `=` integer\_constant ]