summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2021-03-09 23:35:37 +0100
committerJens Geyer <jensg@apache.org>2021-03-09 23:35:57 +0100
commit83370694d03c68e81c76dc38b17b272b51dd1e35 (patch)
tree7d2f27fa79bf7a05595864acae34df840eae59aa /doc
parent0d12832d92351f2cbb2c59edaeb114f789c0ec9b (diff)
downloadthrift-83370694d03c68e81c76dc38b17b272b51dd1e35.tar.gz
THRIFT-5332 Question: list all the reserved words in thrift doc
Diffstat (limited to 'doc')
-rw-r--r--doc/specs/idl.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/specs/idl.md b/doc/specs/idl.md
index 8441f32e4..adcbb711f 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: