Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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 c528dc75055..422301e7999 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