From 83370694d03c68e81c76dc38b17b272b51dd1e35 Mon Sep 17 00:00:00 2001 From: Jens Geyer Date: Tue, 9 Mar 2021 23:35:37 +0100 Subject: THRIFT-5332 Question: list all the reserved words in thrift doc --- doc/specs/idl.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'doc') 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: -- cgit v1.2.1