Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2009-02-03 11:57:50 -0500
committerMike Kucera2009-02-03 11:57:50 -0500
commit75756374e344fd22c97f31308a3ec977c474b3ac (patch)
treecc96f2a4361e5b695519481b42c5b932720ff507 /lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPNoFunctionDeclaratorParser.g
parentbd7f096c7c4469c98cea8692325267b63e269d43 (diff)
downloadorg.eclipse.cdt-75756374e344fd22c97f31308a3ec977c474b3ac.tar.gz
org.eclipse.cdt-75756374e344fd22c97f31308a3ec977c474b3ac.tar.xz
org.eclipse.cdt-75756374e344fd22c97f31308a3ec977c474b3ac.zip
improved several interfaces in LR parser
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPNoFunctionDeclaratorParser.g')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPNoFunctionDeclaratorParser.g6
1 files changed, 5 insertions, 1 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPNoFunctionDeclaratorParser.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPNoFunctionDeclaratorParser.g
index bdbaf96e24..6e0bcc4cd3 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPNoFunctionDeclaratorParser.g
+++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPNoFunctionDeclaratorParser.g
@@ -25,6 +25,10 @@ $DropRules
$End
+$Define
+ $ast_class /. IASTDeclarator ./
+$End
+
$Start
no_function_declarator_start
$End
@@ -34,7 +38,7 @@ $Rules
no_function_declarator_start
::= init_declarator_complete
| ERROR_TOKEN
- /. $Build consumeDeclarationProblem(); $EndBuild ./
+ /. $Build consumeEmpty(); $EndBuild ./
-- redeclare this rule with no semantic action, prevents recursion
init_declarator_complete

Back to the top