This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 8337069  THRIFT-5332 Question: list all the reserved words in thrift 
doc
8337069 is described below

commit 83370694d03c68e81c76dc38b17b272b51dd1e35
Author: Jens Geyer <[email protected]>
AuthorDate: Tue Mar 9 23:35:37 2021 +0100

    THRIFT-5332 Question: list all the reserved words in thrift doc
---
 doc/specs/idl.md | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/doc/specs/idl.md b/doc/specs/idl.md
index 8441f32..adcbb71 100644
--- a/doc/specs/idl.md
+++ b/doc/specs/idl.md
@@ -210,6 +210,21 @@ N.B.: These have some internal purpose at Facebook but 
serve no current purpose
 
     [42] Digit           ::=  ['0'-'9']
 
+## Reserved keywords
+
+    "BEGIN", "END", "__CLASS__", "__DIR__", "__FILE__", "__FUNCTION__",
+    "__LINE__", "__METHOD__", "__NAMESPACE__", "abstract", "alias", "and", 
"args", "as",
+    "assert", "begin", "break", "case", "catch", "class", "clone", "continue", 
"declare",
+    "def", "default", "del", "delete", "do", "dynamic", "elif", "else", 
"elseif", "elsif",
+    "end", "enddeclare", "endfor", "endforeach", "endif", "endswitch", 
"endwhile", "ensure",
+    "except", "exec", "finally", "float", "for", "foreach", "from", 
"function", "global",
+    "goto", "if", "implements", "import", "in", "inline", "instanceof", 
"interface", "is",
+    "lambda", "module", "native", "new", "next", "nil", "not", "or", 
"package", "pass",
+    "public", "print", "private", "protected", "raise", "redo", "rescue", 
"retry", "register",
+    "return", "self", "sizeof", "static", "super", "switch", "synchronized", 
"then", "this",
+    "throw", "transient", "try", "undef", "unless", "unsigned", "until", 
"use", "var",
+    "virtual", "volatile", "when", "while", "with", "xor", "yield" 
+
 ## Examples
 
 Here are some examples of Thrift definitions, using the Thrift IDL:

Reply via email to