diff options
author | Mike Kucera | 2009-02-03 16:57:50 +0000 |
---|---|---|
committer | Mike Kucera | 2009-02-03 16:57:50 +0000 |
commit | 75756374e344fd22c97f31308a3ec977c474b3ac (patch) | |
tree | cc96f2a4361e5b695519481b42c5b932720ff507 /lrparser/org.eclipse.cdt.core.lrparser/grammar/c99 | |
parent | bd7f096c7c4469c98cea8692325267b63e269d43 (diff) | |
download | org.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/c99')
4 files changed, 19 insertions, 3 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99ExpressionParser.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99ExpressionParser.g index 80919514f39..ba2ae8d25b1 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99ExpressionParser.g +++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99ExpressionParser.g @@ -20,6 +20,10 @@ $Import C99Grammar.g $End +$Define + $ast_class /. IASTExpression ./ +$End + $Start expression_parser_start $End @@ -29,6 +33,6 @@ $Rules expression_parser_start ::= expression | ERROR_TOKEN - /. $Build consumeExpressionProblem(); $EndBuild ./ + /. $Build consumeEmpty(); $EndBuild ./ $End
\ No newline at end of file diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99NoCastExpressionParser.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99NoCastExpressionParser.g index a09c257f449..7948a0aea55 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99NoCastExpressionParser.g +++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99NoCastExpressionParser.g @@ -22,6 +22,10 @@ $DropRules $End +$Define + $ast_class /. IASTExpression ./ +$End + $Start no_cast_start $End @@ -31,6 +35,6 @@ $Rules no_cast_start ::= expression | ERROR_TOKEN - /. $Build consumeExpressionProblem(); $EndBuild ./ + /. $Build consumeEmpty(); $EndBuild ./ $End
\ No newline at end of file diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99Parser.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99Parser.g index f89f4493f3e..38195cc4a01 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99Parser.g +++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99Parser.g @@ -20,6 +20,10 @@ $Import C99Grammar.g $End +$Define + $ast_class /. IASTTranslationUnit ./ +$End + $Start translation_unit $End
\ No newline at end of file diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99SizeofExpressionParser.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99SizeofExpressionParser.g index 764953a5ad2..14084dc832a 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99SizeofExpressionParser.g +++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/c99/C99SizeofExpressionParser.g @@ -23,6 +23,10 @@ $DropRules $End +$Define + $ast_class /. IASTExpression ./ +$End + $Start no_sizeof_type_id_start $End @@ -32,6 +36,6 @@ $Rules no_sizeof_type_id_start ::= expression | ERROR_TOKEN - /. $Build consumeExpressionProblem(); $EndBuild ./ + /. $Build consumeEmpty(); $EndBuild ./ $End
\ No newline at end of file |