Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2009-01-15 17:04:14 -0500
committerMike Kucera2009-01-15 17:04:14 -0500
commite314072063f1a32423a5e100269302b6f25658f1 (patch)
tree1bd8ea84840a0c6c5ad6692c4b620c0e2f6b0953 /lrparser/org.eclipse.cdt.core.lrparser/grammar/gcc/GCCParser.g
parent56c5c65d374eafc4e00b4b4ef6c143a214807fdb (diff)
downloadorg.eclipse.cdt-e314072063f1a32423a5e100269302b6f25658f1.tar.gz
org.eclipse.cdt-e314072063f1a32423a5e100269302b6f25658f1.tar.xz
org.eclipse.cdt-e314072063f1a32423a5e100269302b6f25658f1.zip
support for GCC array range designators, renamed some packages
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser/grammar/gcc/GCCParser.g')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/grammar/gcc/GCCParser.g28
1 files changed, 27 insertions, 1 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/gcc/GCCParser.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/gcc/GCCParser.g
index c528dc7505..422301e799 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/gcc/GCCParser.g
+++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/gcc/GCCParser.g
@@ -33,7 +33,17 @@ $Terminals
$End
+$Globals
+/.
+ import org.eclipse.cdt.core.dom.lrparser.action.gnu.GCCBuildASTParserAction;
+./
+$End
+
+$Define
+ $gnu_action_class /. GCCBuildASTParserAction ./
+
+$End
$Rules
@@ -43,7 +53,6 @@ declaration
::= extended_asm_declaration
-
no_type_declaration_specifier
::= attribute_or_decl_specifier
@@ -73,4 +82,21 @@ elaborated_specifier_hook
::= attribute_or_decl_specifier_seq
+
+
+
+
+
+designator_base
+ ::= identifier_token ':'
+ /. $BeginAction gnuAction.consumeDesignatorField(); $EndAction ./
+ | '[' constant_expression '...' constant_expression ']'
+ /. $BeginAction gnuAction.consumeDesignatorArray(); $EndAction ./
+
+
+
+
+
+
+
$End \ No newline at end of file

Back to the top