Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2009-01-30 13:31:43 +0000
committerMike Kucera2009-01-30 13:31:43 +0000
commit44907e70565784664cf3c4ab07a658682ff63d96 (patch)
treee78d0cefcf9927c03148b0fe14b383f6d7238e06 /lrparser/org.eclipse.cdt.core.lrparser/grammar/template
parent8a018e449f2c6a6d9c7186d45b735020d6610e14 (diff)
downloadorg.eclipse.cdt-44907e70565784664cf3c4ab07a658682ff63d96.tar.gz
org.eclipse.cdt-44907e70565784664cf3c4ab07a658682ff63d96.tar.xz
org.eclipse.cdt-44907e70565784664cf3c4ab07a658682ff63d96.zip
added support to LR parsers for GNU extensions typeof and alignof, added ISecondaryParserFactory
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser/grammar/template')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/grammar/template/FixedBtParserTemplateD.g11
1 files changed, 6 insertions, 5 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/template/FixedBtParserTemplateD.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/template/FixedBtParserTemplateD.g
index bc5892463c1..42935081266 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/template/FixedBtParserTemplateD.g
+++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/template/FixedBtParserTemplateD.g
@@ -1,5 +1,5 @@
----------------------------------------------------------------------------------
--- Copyright (c) 2006, 2008 IBM Corporation and others.
+-- Copyright (c) 2006, 2009 IBM Corporation and others.
-- All rights reserved. This program and the accompanying materials
-- are made available under the terms of the Eclipse Public License v1.0
-- which accompanies this distribution, and is available at
@@ -320,7 +320,8 @@ $Define
$additional_interfaces /. , IParserActionTokenProvider, IParser $extra_interfaces ./
$build_action_class /. ./ -- name of the class that has the AST building callbacks
- $node_factory_create_expression /. ./ -- expression that will create the node factory
+ $node_factory_create_expression /. ./ -- expression that will create the INodeFactory
+ $parser_factory_create_expression /. ./ -- expression that will create the ISecondaryParserFactory
$action_initializations /. ./
@@ -349,7 +350,7 @@ $Headers
}
private void initActions(IASTTranslationUnit tu, Set<IParser.Options> options) {
- action = new $build_action_class($node_factory_create_expression, this, tu, astStack);
+ action = new $build_action_class(this, tu, astStack, $node_factory_create_expression, $parser_factory_create_expression);
action.setParserOptions(options);
$action_initializations
@@ -422,8 +423,8 @@ $Headers
addToken(new Token(null, 0, 0, $sym_type.TK_EOF_TOKEN));
}
- public $action_type(String[] mapFrom) { // constructor
- tokenMap = new TokenMap($sym_type.orderedTerminalSymbols, mapFrom);
+ public $action_type(IParserActionTokenProvider parser) { // constructor
+ tokenMap = new TokenMap($sym_type.orderedTerminalSymbols, parser.getOrderedTerminalSymbols());
}

Back to the top