Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPExpressionParser.g')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPExpressionParser.g6
1 files changed, 5 insertions, 1 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPExpressionParser.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPExpressionParser.g
index 3af8f68ce6..b9ab4957b7 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPExpressionParser.g
+++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPExpressionParser.g
@@ -19,6 +19,10 @@ $Import
CPPGrammar.g
$End
+$Define
+ $ast_class /. IASTExpression ./
+$End
+
$Start
expression_parser_start
$End
@@ -28,6 +32,6 @@ $Rules
expression_parser_start
::= expression
| ERROR_TOKEN
- /. $Build consumeExpressionProblem(); $EndBuild ./
+ /. $Build consumeEmpty(); $EndBuild ./
$End \ No newline at end of file

Back to the top