Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2009-04-22 11:26:09 -0400
committerMike Kucera2009-04-22 11:26:09 -0400
commit6262b1fe81c053963220e980a42a83edc02e7f3d (patch)
treee8febb8e675eed8ee44bf134efb7f4f360c96425 /lrparser/org.eclipse.cdt.core.lrparser
parent91657617cbb6a860aae6a1180144463fdd411c90 (diff)
downloadorg.eclipse.cdt-6262b1fe81c053963220e980a42a83edc02e7f3d.tar.gz
org.eclipse.cdt-6262b1fe81c053963220e980a42a83edc02e7f3d.tar.xz
org.eclipse.cdt-6262b1fe81c053963220e980a42a83edc02e7f3d.zip
[273283] [XLC Parser] support _Complex and restrict keywords in C++
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g8
1 files changed, 6 insertions, 2 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g
index 752839327b..d36a8bbfd0 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g
+++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g
@@ -964,10 +964,14 @@ elaborated_specifier_hook
-- ::= identifier_token
+comma_opt
+ ::= ',' | $empty
+
+
enum_specifier
- ::= 'enum' enum_specifier_hook '{' <openscope-ast> enumerator_list_opt '}'
+ ::= 'enum' enum_specifier_hook '{' <openscope-ast> enumerator_list_opt comma_opt '}'
/. $Build consumeTypeSpecifierEnumeration(false); $EndBuild ./
- | 'enum' enum_specifier_hook identifier_token '{' <openscope-ast> enumerator_list_opt '}'
+ | 'enum' enum_specifier_hook identifier_token '{' <openscope-ast> enumerator_list_opt comma_opt '}'
/. $Build consumeTypeSpecifierEnumeration(true); $EndBuild ./
enum_specifier_hook

Back to the top