/*******************************************************************************
* Copyright (c) 2006, 2010 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*     IBM Corporation - initial API and implementation
*********************************************************************************/

// This file was generated by LPG

package org.eclipse.cdt.internal.core.dom.lrparser.cpp;

import lpg.lpgjavaruntime.*;

import java.util.*;
import org.eclipse.cdt.core.dom.ast.*;
import org.eclipse.cdt.core.dom.lrparser.IDOMTokenMap;
import org.eclipse.cdt.core.dom.lrparser.IParser;
import org.eclipse.cdt.core.dom.lrparser.ITokenCollector;
import org.eclipse.cdt.core.dom.lrparser.CPreprocessorAdapter;
import org.eclipse.cdt.core.dom.lrparser.action.ITokenStream;
import org.eclipse.cdt.core.dom.lrparser.lpgextensions.FixedBacktrackingParser;
import org.eclipse.cdt.core.dom.lrparser.action.ScopedStack;
import org.eclipse.cdt.core.parser.IScanner;
import org.eclipse.cdt.core.dom.parser.IBuiltinBindingsProvider;
import org.eclipse.cdt.core.index.IIndex;

import org.eclipse.cdt.core.dom.lrparser.action.ITokenMap;
import org.eclipse.cdt.core.dom.lrparser.action.TokenMap;
import org.eclipse.cdt.core.dom.lrparser.ISecondaryParser;

import org.eclipse.cdt.core.dom.ast.cpp.*;
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPNodeFactory;
import org.eclipse.cdt.core.dom.lrparser.action.cpp.CPPBuildASTParserAction;
import org.eclipse.cdt.core.dom.lrparser.action.cpp.CPPSecondaryParserFactory;

import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTTemplateParameter;

public class CPPTemplateTypeParameterParser extends PrsStream implements RuleAction, ITokenStream, 
                                                       ITokenCollector, IParser< ICPPASTTemplateParameter > 
                                                        , ISecondaryParser< ICPPASTTemplateParameter >   
{
    private static ParseTable prs = new CPPTemplateTypeParameterParserprs();
    private FixedBacktrackingParser btParser;

    public FixedBacktrackingParser getParser() { return btParser; }
    private void setResult(Object object) { btParser.setSym1(object); }
    public Object getRhsSym(int i) { return btParser.getSym(i); }

    public int getRhsTokenIndex(int i) { return btParser.getToken(i); }
    public IToken getRhsIToken(int i) { return super.getIToken(getRhsTokenIndex(i)); }
    
    public int getRhsFirstTokenIndex(int i) { return btParser.getFirstToken(i); }
    public IToken getRhsFirstIToken(int i) { return super.getIToken(getRhsFirstTokenIndex(i)); }

    public int getRhsLastTokenIndex(int i) { return btParser.getLastToken(i); }
    public IToken getRhsLastIToken(int i) { return super.getIToken(getRhsLastTokenIndex(i)); }

    public int getLeftSpan() { return btParser.getFirstToken(); }
    public IToken getLeftIToken()  { return super.getIToken(getLeftSpan()); }

    public int getRightSpan() { return btParser.getLastToken(); }
    public IToken getRightIToken() { return super.getIToken(getRightSpan()); }

    public int getRhsErrorTokenIndex(int i)
    {
        int index = btParser.getToken(i);
        IToken err = super.getIToken(index);
        return (err instanceof ErrorToken ? index : 0);
    }
    public ErrorToken getRhsErrorIToken(int i)
    {
        int index = btParser.getToken(i);
        IToken err = super.getIToken(index);
        return (ErrorToken) (err instanceof ErrorToken ? err : null);
    }

    public CPPTemplateTypeParameterParser(LexStream lexStream)
    {
        super(lexStream);

        try
        {
            super.remapTerminalSymbols(orderedTerminalSymbols(), CPPTemplateTypeParameterParserprs.EOFT_SYMBOL);
        }
        catch(NullExportedSymbolsException e) {
        }
        catch(NullTerminalSymbolsException e) {
        }
        catch(UnimplementedTerminalsException e)
        {
            java.util.ArrayList unimplemented_symbols = e.getSymbols();
            System.out.println("The Lexer will not scan the following token(s):");
            for (int i = 0; i < unimplemented_symbols.size(); i++)
            {
                Integer id = (Integer) unimplemented_symbols.get(i);
                System.out.println("    " + CPPTemplateTypeParameterParsersym.orderedTerminalSymbols[id.intValue()]);               
            }
            System.out.println();                        
        }
        catch(UndefinedEofSymbolException e)
        {
            throw new Error(new UndefinedEofSymbolException
                                ("The Lexer does not implement the Eof symbol " +
                                 CPPTemplateTypeParameterParsersym.orderedTerminalSymbols[CPPTemplateTypeParameterParserprs.EOFT_SYMBOL]));
        } 
    }

    public String[] orderedTerminalSymbols() { return CPPTemplateTypeParameterParsersym.orderedTerminalSymbols; }
    public String getTokenKindName(int kind) { return CPPTemplateTypeParameterParsersym.orderedTerminalSymbols[kind]; }
    public int getEOFTokenKind() { return CPPTemplateTypeParameterParserprs.EOFT_SYMBOL; }
    public PrsStream getParseStream() { return (PrsStream) this; }
    
    //
    // Report error message for given error_token.
    //
    public final void reportErrorTokenMessage(int error_token, String msg)
    {
        int firsttok = super.getFirstErrorToken(error_token),
            lasttok = super.getLastErrorToken(error_token);
        String location = super.getFileName() + ':' +
                          (firsttok > lasttok
                                    ? (super.getEndLine(lasttok) + ":" + super.getEndColumn(lasttok))
                                    : (super.getLine(error_token) + ":" +
                                       super.getColumn(error_token) + ":" +
                                       super.getEndLine(error_token) + ":" +
                                       super.getEndColumn(error_token)))
                          + ": ";
        super.reportError((firsttok > lasttok ? ParseErrorCodes.INSERTION_CODE : ParseErrorCodes.SUBSTITUTION_CODE), location, msg);
    }

    public void parser()
    {
        parser(null, 0);
    }
    
    public void parser(Monitor monitor)
    {
        parser(monitor, 0);
    }
    
    public void parser(int error_repair_count)
    {
        parser(null, error_repair_count);
    }

    public void parser(Monitor monitor, int error_repair_count)
    {
        try
        {
            btParser = new FixedBacktrackingParser(monitor, (TokenStream) this, prs, (RuleAction) this);
        }
        catch (NotBacktrackParseTableException e)
        {
            throw new Error(new NotBacktrackParseTableException
                                ("Regenerate CPPTemplateTypeParameterParserprs.java with -BACKTRACK option"));
        }
        catch (BadParseSymFileException e)
        {
            throw new Error(new BadParseSymFileException("Bad Parser Symbol File -- CPPTemplateTypeParameterParsersym.java"));
        }

        try
        {
            btParser.parse(error_repair_count);
        }
        catch (BadParseException e)
        {
            reset(e.error_token); // point to error token
            DiagnoseParser diagnoseParser = new DiagnoseParser(this, prs);
            diagnoseParser.diagnose(e.error_token);
        }
    }


private  CPPBuildASTParserAction  action;
private IASTCompletionNode compNode;


public CPPTemplateTypeParameterParser(IScanner scanner, IDOMTokenMap tokenMap, IBuiltinBindingsProvider builtinBindingsProvider, IIndex index, Map<String,String> properties) {
	initActions(properties);
	action.initializeTranslationUnit(scanner, builtinBindingsProvider, index);
	CPreprocessorAdapter.runCPreprocessor(scanner, this, tokenMap);
}

private void initActions(Map<String,String> properties) {
	ScopedStack<Object> astStack = new ScopedStack<Object>();
	
	action = new  CPPBuildASTParserAction (this, astStack,  CPPNodeFactory.getDefault() ,  CPPSecondaryParserFactory.getDefault() );
	action.setParserProperties(properties);
	
	 
}


public void addToken(IToken token) {
	token.setKind(mapKind(token.getKind())); // TODO does mapKind need to be called?
	super.addToken(token);
}


public  ICPPASTTemplateParameter  parse() {
	// this has to be done, or... kaboom!
	setStreamLength(getSize());
	
	final int errorRepairCount = -1;  // -1 means full error handling
	parser(null, errorRepairCount); // do the actual parse
	super.resetTokenStream(); // allow tokens to be garbage collected

	compNode = action.getASTCompletionNode(); // the completion node may be null
	return ( ICPPASTTemplateParameter ) action.getParseResult();
}


public IASTCompletionNode getCompletionNode() {
	return compNode;
}

// uncomment this method to use with backtracking parser
public List<IToken> getRuleTokens() {
    return getTokens().subList(getLeftSpan(), getRightSpan() + 1);
}

public String[] getOrderedTerminalSymbols() {
	return CPPTemplateTypeParameterParsersym.orderedTerminalSymbols;
}

@SuppressWarnings("nls")
public String getName() {
	return "CPPTemplateTypeParameterParser";
}



private ITokenMap tokenMap = null;

public void setTokens(List<IToken> tokens) {
	resetTokenStream();
	addToken(new Token(null, 0, 0, 0)); // dummy token
	for(IToken token : tokens) {
		token.setKind(tokenMap.mapKind(token.getKind()));
		addToken(token);
	}
	addToken(new Token(null, 0, 0, CPPTemplateTypeParameterParsersym.TK_EOF_TOKEN));
}

public CPPTemplateTypeParameterParser(ITokenStream stream, Map<String,String> properties) {  // constructor for creating secondary parser
	initActions(properties);
	tokenMap = new TokenMap(CPPTemplateTypeParameterParsersym.orderedTerminalSymbols, stream.getOrderedTerminalSymbols());
}

  public CPPTemplateTypeParameterParser(ITokenStream stream, IScanner scanner, IBuiltinBindingsProvider builtinBindingsProvider, IIndex index, Map<String,String> properties) {  // constructor for creating secondary parser
	initActions(properties);
	action.initializeTranslationUnit(scanner, builtinBindingsProvider, index);
	tokenMap = new TokenMap(CPPTemplateTypeParameterParsersym.orderedTerminalSymbols, stream.getOrderedTerminalSymbols());
}		


    public void ruleAction(int ruleNumber)
    {
        switch (ruleNumber)
        {
  
            //
            // Rule 1:  <openscope-ast> ::= $Empty
            //
            case 1: { action.   openASTScope();             break;
            }  
  
            //
            // Rule 2:  <empty> ::= $Empty
            //
            case 2: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 13:  translation_unit ::= declaration_seq_opt
            //
            case 13: { action.   consumeTranslationUnit();            break;
            }  
  
            //
            // Rule 16:  literal ::= integer
            //
            case 16: { action.   consumeExpressionLiteral(ICPPASTLiteralExpression.lk_integer_constant);            break;
            }  
  
            //
            // Rule 17:  literal ::= floating
            //
            case 17: { action.   consumeExpressionLiteral(ICPPASTLiteralExpression.lk_float_constant);            break;
            }  
  
            //
            // Rule 18:  literal ::= charconst
            //
            case 18: { action.   consumeExpressionLiteral(ICPPASTLiteralExpression.lk_char_constant);            break;
            }  
  
            //
            // Rule 19:  literal ::= stringlit
            //
            case 19: { action.   consumeExpressionLiteral(ICPPASTLiteralExpression.lk_string_literal);            break;
            }  
  
            //
            // Rule 20:  literal ::= true
            //
            case 20: { action.   consumeExpressionLiteral(ICPPASTLiteralExpression.lk_true);            break;
            }  
  
            //
            // Rule 21:  literal ::= false
            //
            case 21: { action.   consumeExpressionLiteral(ICPPASTLiteralExpression.lk_false);            break;
            }  
  
            //
            // Rule 22:  literal ::= this
            //
            case 22: { action.   consumeExpressionLiteral(ICPPASTLiteralExpression.lk_this);            break;
            }  
  
            //
            // Rule 24:  primary_expression ::= ( expression )
            //
            case 24: { action.   consumeExpressionBracketed();             break;
            }  
  
            //
            // Rule 26:  id_expression ::= qualified_or_unqualified_name
            //
            case 26: { action.   consumeExpressionName();             break;
            }  
  
            //
            // Rule 33:  unqualified_id_name ::= ~ identifier_token
            //
            case 33: { action.   consumeDestructorName();             break;
            }  
  
            //
            // Rule 34:  unqualified_id_name ::= ~ template_id_name
            //
            case 34: { action.   consumeDestructorNameTemplateId();             break;
            }  
  
            //
            // Rule 35:  identifier_name ::= identifier_token
            //
            case 35: { action.   consumeIdentifierName();             break;
            }  
  
            //
            // Rule 36:  template_opt ::= template
            //
            case 36: { action.   consumePlaceHolder();             break;
            }  
  
            //
            // Rule 37:  template_opt ::= $Empty
            //
            case 37: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 38:  dcolon_opt ::= ::
            //
            case 38: { action.   consumeToken();             break;
            }  
  
            //
            // Rule 39:  dcolon_opt ::= $Empty
            //
            case 39: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 40:  qualified_id_name ::= dcolon_opt nested_name_specifier template_opt unqualified_id_name
            //
            case 40: { action.   consumeQualifiedId(true);             break;
            }  
  
            //
            // Rule 41:  qualified_id_name ::= :: unqualified_id_name
            //
            case 41: { action.   consumeGlobalQualifiedId();             break;
            }  
  
            //
            // Rule 42:  nested_name_specifier ::= class_or_namespace_name :: nested_name_specifier_with_template
            //
            case 42: { action.   consumeNestedNameSpecifier(true);             break;
            }  
  
            //
            // Rule 43:  nested_name_specifier ::= class_or_namespace_name ::
            //
            case 43: { action.   consumeNestedNameSpecifier(false);             break;
            }  
  
            //
            // Rule 44:  nested_name_specifier_with_template ::= class_or_namespace_name_with_template :: nested_name_specifier_with_template
            //
            case 44: { action.   consumeNestedNameSpecifier(true);             break;
            }  
  
            //
            // Rule 45:  nested_name_specifier_with_template ::= class_or_namespace_name_with_template ::
            //
            case 45: { action.   consumeNestedNameSpecifier(false);             break;
            }  
  
            //
            // Rule 46:  class_or_namespace_name_with_template ::= template_opt class_or_namespace_name
            //
            case 46: { action.   consumeNameWithTemplateKeyword();             break;
            }  
  
            //
            // Rule 48:  nested_name_specifier_opt ::= $Empty
            //
            case 48: { action.   consumeNestedNameSpecifierEmpty();             break;
            }  
  
            //
            // Rule 51:  postfix_expression ::= postfix_expression [ expression ]
            //
            case 51: { action.   consumeExpressionArraySubscript();             break;
            }  
  
            //
            // Rule 52:  postfix_expression ::= postfix_expression ( expression_list_opt )
            //
            case 52: { action.   consumeExpressionFunctionCall();             break;
            }  
  
            //
            // Rule 53:  postfix_expression ::= simple_type_specifier ( expression_list_opt )
            //
            case 53: { action.   consumeExpressionSimpleTypeConstructor();            break;
            }  
  
            //
            // Rule 54:  postfix_expression ::= typename dcolon_opt nested_name_specifier <empty> identifier_name ( expression_list_opt )
            //
            case 54: { action.   consumeExpressionTypeName();            break;
            }  
  
            //
            // Rule 55:  postfix_expression ::= typename dcolon_opt nested_name_specifier template_opt template_id_name ( expression_list_opt )
            //
            case 55: { action.   consumeExpressionTypeName();            break;
            }  
  
            //
            // Rule 56:  postfix_expression ::= postfix_expression . qualified_or_unqualified_name
            //
            case 56: { action.   consumeExpressionFieldReference(false, false);             break;
            }  
  
            //
            // Rule 57:  postfix_expression ::= postfix_expression -> qualified_or_unqualified_name
            //
            case 57: { action.   consumeExpressionFieldReference(true, false);             break;
            }  
  
            //
            // Rule 58:  postfix_expression ::= postfix_expression . template qualified_or_unqualified_name
            //
            case 58: { action.   consumeExpressionFieldReference(false, true);             break;
            }  
  
            //
            // Rule 59:  postfix_expression ::= postfix_expression -> template qualified_or_unqualified_name
            //
            case 59: { action.   consumeExpressionFieldReference(true, true);             break;
            }  
  
            //
            // Rule 60:  postfix_expression ::= postfix_expression . pseudo_destructor_name
            //
            case 60: { action.   consumeExpressionFieldReference(false, false);             break;
            }  
  
            //
            // Rule 61:  postfix_expression ::= postfix_expression -> pseudo_destructor_name
            //
            case 61: { action.   consumeExpressionFieldReference(true, false);             break;
            }  
  
            //
            // Rule 62:  postfix_expression ::= postfix_expression ++
            //
            case 62: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_postFixIncr);             break;
            }  
  
            //
            // Rule 63:  postfix_expression ::= postfix_expression --
            //
            case 63: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_postFixDecr);             break;
            }  
  
            //
            // Rule 64:  postfix_expression ::= dynamic_cast < type_id > ( expression )
            //
            case 64: { action.   consumeExpressionCast(ICPPASTCastExpression.op_dynamic_cast);             break;
            }  
  
            //
            // Rule 65:  postfix_expression ::= static_cast < type_id > ( expression )
            //
            case 65: { action.   consumeExpressionCast(ICPPASTCastExpression.op_static_cast);             break;
            }  
  
            //
            // Rule 66:  postfix_expression ::= reinterpret_cast < type_id > ( expression )
            //
            case 66: { action.   consumeExpressionCast(ICPPASTCastExpression.op_reinterpret_cast);             break;
            }  
  
            //
            // Rule 67:  postfix_expression ::= const_cast < type_id > ( expression )
            //
            case 67: { action.   consumeExpressionCast(ICPPASTCastExpression.op_const_cast);             break;
            }  
  
            //
            // Rule 68:  postfix_expression ::= typeid ( expression )
            //
            case 68: { action.   consumeExpressionUnaryOperator(ICPPASTUnaryExpression.op_typeid);             break;
            }  
  
            //
            // Rule 69:  postfix_expression ::= typeid ( type_id )
            //
            case 69: { action.   consumeExpressionTypeId(ICPPASTTypeIdExpression.op_typeid);            break;
            }  
  
            //
            // Rule 70:  pseudo_destructor_name ::= dcolon_opt nested_name_specifier_opt type_name :: destructor_type_name
            //
            case 70: { action.   consumePsudoDestructorName(true);             break;
            }  
  
            //
            // Rule 71:  pseudo_destructor_name ::= dcolon_opt nested_name_specifier template template_id_name :: destructor_type_name
            //
            case 71: { action.   consumePsudoDestructorName(true);             break;
            }  
  
            //
            // Rule 72:  pseudo_destructor_name ::= dcolon_opt nested_name_specifier_opt destructor_type_name
            //
            case 72: { action.   consumePsudoDestructorName(false);             break;
            }  
  
            //
            // Rule 73:  destructor_type_name ::= ~ identifier_token
            //
            case 73: { action.   consumeDestructorName();             break;
            }  
  
            //
            // Rule 74:  destructor_type_name ::= ~ template_id_name
            //
            case 74: { action.   consumeDestructorNameTemplateId();             break;
            }  
  
            //
            // Rule 78:  unary_expression ::= ++ cast_expression
            //
            case 78: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_prefixIncr);             break;
            }  
  
            //
            // Rule 79:  unary_expression ::= -- cast_expression
            //
            case 79: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_prefixDecr);             break;
            }  
  
            //
            // Rule 80:  unary_expression ::= & cast_expression
            //
            case 80: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_amper);             break;
            }  
  
            //
            // Rule 81:  unary_expression ::= * cast_expression
            //
            case 81: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_star);             break;
            }  
  
            //
            // Rule 82:  unary_expression ::= + cast_expression
            //
            case 82: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_plus);             break;
            }  
  
            //
            // Rule 83:  unary_expression ::= - cast_expression
            //
            case 83: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_minus);             break;
            }  
  
            //
            // Rule 84:  unary_expression ::= ~ cast_expression
            //
            case 84: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_tilde);             break;
            }  
  
            //
            // Rule 85:  unary_expression ::= ! cast_expression
            //
            case 85: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_not);             break;
            }  
  
            //
            // Rule 86:  unary_expression ::= sizeof unary_expression
            //
            case 86: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_sizeof);             break;
            }  
  
            //
            // Rule 87:  unary_expression ::= sizeof ( type_id )
            //
            case 87: { action.   consumeExpressionTypeId(ICPPASTTypeIdExpression.op_sizeof);            break;
            }  
  
            //
            // Rule 88:  new_expression ::= dcolon_opt new new_placement_opt new_type_id <openscope-ast> new_array_expressions_opt new_initializer_opt
            //
            case 88: { action.   consumeExpressionNew(true);             break;
            }  
  
            //
            // Rule 89:  new_expression ::= dcolon_opt new new_placement_opt ( type_id ) <openscope-ast> new_array_expressions_opt new_initializer_opt
            //
            case 89: { action.   consumeExpressionNew(false);             break;
            }  
  
            //
            // Rule 91:  new_placement_opt ::= $Empty
            //
            case 91: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 92:  new_type_id ::= type_specifier_seq
            //
            case 92: { action.   consumeTypeId(false);             break;
            }  
  
            //
            // Rule 93:  new_type_id ::= type_specifier_seq new_declarator
            //
            case 93: { action.   consumeTypeId(true);             break;
            }  
  
            //
            // Rule 94:  new_declarator ::= <openscope-ast> new_pointer_operators
            //
            case 94: { action.   consumeNewDeclarator();            break;
            }  
  
            //
            // Rule 101:  new_initializer ::= ( expression_list_opt )
            //
            case 101: { action.   consumeNewInitializer();             break;
            }  
  
            //
            // Rule 103:  new_initializer_opt ::= $Empty
            //
            case 103: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 104:  delete_expression ::= dcolon_opt delete cast_expression
            //
            case 104: { action.   consumeExpressionDelete(false);             break;
            }  
  
            //
            // Rule 105:  delete_expression ::= dcolon_opt delete [ ] cast_expression
            //
            case 105: { action.   consumeExpressionDelete(true);             break;
            }  
  
            //
            // Rule 107:  cast_expression ::= ( type_id ) cast_expression
            //
            case 107: { action.   consumeExpressionCast(ICPPASTCastExpression.op_cast);             break;
            }  
  
            //
            // Rule 109:  pm_expression ::= pm_expression .* cast_expression
            //
            case 109: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_pmdot);             break;
            }  
  
            //
            // Rule 110:  pm_expression ::= pm_expression ->* cast_expression
            //
            case 110: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_pmarrow);             break;
            }  
  
            //
            // Rule 112:  multiplicative_expression ::= multiplicative_expression * pm_expression
            //
            case 112: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_multiply);             break;
            }  
  
            //
            // Rule 113:  multiplicative_expression ::= multiplicative_expression / pm_expression
            //
            case 113: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_divide);             break;
            }  
  
            //
            // Rule 114:  multiplicative_expression ::= multiplicative_expression % pm_expression
            //
            case 114: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_modulo);             break;
            }  
  
            //
            // Rule 116:  additive_expression ::= additive_expression + multiplicative_expression
            //
            case 116: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_plus);             break;
            }  
  
            //
            // Rule 117:  additive_expression ::= additive_expression - multiplicative_expression
            //
            case 117: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_minus);             break;
            }  
  
            //
            // Rule 119:  shift_expression ::= shift_expression << additive_expression
            //
            case 119: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_shiftLeft);             break;
            }  
  
            //
            // Rule 120:  shift_expression ::= shift_expression >> additive_expression
            //
            case 120: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_shiftRight);             break;
            }  
  
            //
            // Rule 122:  relational_expression ::= relational_expression < shift_expression
            //
            case 122: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_lessThan);             break;
            }  
  
            //
            // Rule 123:  relational_expression ::= relational_expression > shift_expression
            //
            case 123: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_greaterThan);             break;
            }  
  
            //
            // Rule 124:  relational_expression ::= relational_expression <= shift_expression
            //
            case 124: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_lessEqual);             break;
            }  
  
            //
            // Rule 125:  relational_expression ::= relational_expression >= shift_expression
            //
            case 125: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_greaterEqual);             break;
            }  
  
            //
            // Rule 127:  equality_expression ::= equality_expression == relational_expression
            //
            case 127: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_equals);             break;
            }  
  
            //
            // Rule 128:  equality_expression ::= equality_expression != relational_expression
            //
            case 128: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_notequals);             break;
            }  
  
            //
            // Rule 130:  and_expression ::= and_expression & equality_expression
            //
            case 130: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryAnd);             break;
            }  
  
            //
            // Rule 132:  exclusive_or_expression ::= exclusive_or_expression ^ and_expression
            //
            case 132: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryXor);             break;
            }  
  
            //
            // Rule 134:  inclusive_or_expression ::= inclusive_or_expression | exclusive_or_expression
            //
            case 134: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryOr);             break;
            }  
  
            //
            // Rule 136:  logical_and_expression ::= logical_and_expression && inclusive_or_expression
            //
            case 136: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_logicalAnd);             break;
            }  
  
            //
            // Rule 138:  logical_or_expression ::= logical_or_expression || logical_and_expression
            //
            case 138: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_logicalOr);             break;
            }  
  
            //
            // Rule 140:  conditional_expression ::= logical_or_expression ? expression : assignment_expression
            //
            case 140: { action.   consumeExpressionConditional();             break;
            }  
  
            //
            // Rule 142:  relational_expression_inTemplate ::= relational_expression_inTemplate < shift_expression
            //
            case 142: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_lessThan);             break;
            }  
  
            //
            // Rule 143:  relational_expression_inTemplate ::= ( relational_expression_inTemplate > shift_expression )
            //
            case 143: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_greaterThan);             break;
            }  
  
            //
            // Rule 144:  relational_expression_inTemplate ::= relational_expression_inTemplate <= shift_expression
            //
            case 144: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_lessEqual);             break;
            }  
  
            //
            // Rule 145:  relational_expression_inTemplate ::= relational_expression_inTemplate >= shift_expression
            //
            case 145: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_greaterEqual);             break;
            }  
  
            //
            // Rule 147:  equality_expression_inTemplate ::= equality_expression_inTemplate == relational_expression_inTemplate
            //
            case 147: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_equals);             break;
            }  
  
            //
            // Rule 148:  equality_expression_inTemplate ::= equality_expression_inTemplate != relational_expression_inTemplate
            //
            case 148: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_notequals);             break;
            }  
  
            //
            // Rule 150:  and_expression_inTemplate ::= and_expression_inTemplate & equality_expression_inTemplate
            //
            case 150: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryAnd);             break;
            }  
  
            //
            // Rule 152:  exclusive_or_expression_inTemplate ::= exclusive_or_expression_inTemplate ^ and_expression_inTemplate
            //
            case 152: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryXor);             break;
            }  
  
            //
            // Rule 154:  inclusive_or_expression_inTemplate ::= inclusive_or_expression_inTemplate | exclusive_or_expression_inTemplate
            //
            case 154: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryOr);             break;
            }  
  
            //
            // Rule 156:  logical_and_expression_inTemplate ::= logical_and_expression_inTemplate && inclusive_or_expression_inTemplate
            //
            case 156: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_logicalAnd);             break;
            }  
  
            //
            // Rule 158:  logical_or_expression_inTemplate ::= logical_or_expression_inTemplate || logical_and_expression_inTemplate
            //
            case 158: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_logicalOr);             break;
            }  
  
            //
            // Rule 160:  conditional_expression_inTemplate ::= logical_or_expression_inTemplate ? expression : assignment_expression_inTemplate
            //
            case 160: { action.   consumeExpressionConditional();             break;
            }  
  
            //
            // Rule 163:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate = assignment_expression_inTemplate
            //
            case 163: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_assign);             break;
            }  
  
            //
            // Rule 164:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate *= assignment_expression_inTemplate
            //
            case 164: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_multiplyAssign);             break;
            }  
  
            //
            // Rule 165:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate /= assignment_expression_inTemplate
            //
            case 165: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_divideAssign);             break;
            }  
  
            //
            // Rule 166:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate %= assignment_expression_inTemplate
            //
            case 166: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_moduloAssign);             break;
            }  
  
            //
            // Rule 167:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate += assignment_expression_inTemplate
            //
            case 167: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_plusAssign);             break;
            }  
  
            //
            // Rule 168:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate -= assignment_expression_inTemplate
            //
            case 168: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_minusAssign);             break;
            }  
  
            //
            // Rule 169:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate >>= assignment_expression_inTemplate
            //
            case 169: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_shiftRightAssign);             break;
            }  
  
            //
            // Rule 170:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate <<= assignment_expression_inTemplate
            //
            case 170: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_shiftLeftAssign);             break;
            }  
  
            //
            // Rule 171:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate &= assignment_expression_inTemplate
            //
            case 171: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryAndAssign);             break;
            }  
  
            //
            // Rule 172:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate ^= assignment_expression_inTemplate
            //
            case 172: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryXorAssign);             break;
            }  
  
            //
            // Rule 173:  assignment_expression_inTemplate ::= logical_or_expression_inTemplate |= assignment_expression_inTemplate
            //
            case 173: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryOrAssign);             break;
            }  
  
            //
            // Rule 174:  throw_expression ::= throw
            //
            case 174: { action.   consumeExpressionThrow(false);             break;
            }  
  
            //
            // Rule 175:  throw_expression ::= throw assignment_expression
            //
            case 175: { action.   consumeExpressionThrow(true);             break;
            }  
  
            //
            // Rule 178:  assignment_expression ::= logical_or_expression = assignment_expression
            //
            case 178: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_assign);             break;
            }  
  
            //
            // Rule 179:  assignment_expression ::= logical_or_expression *= assignment_expression
            //
            case 179: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_multiplyAssign);             break;
            }  
  
            //
            // Rule 180:  assignment_expression ::= logical_or_expression /= assignment_expression
            //
            case 180: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_divideAssign);             break;
            }  
  
            //
            // Rule 181:  assignment_expression ::= logical_or_expression %= assignment_expression
            //
            case 181: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_moduloAssign);             break;
            }  
  
            //
            // Rule 182:  assignment_expression ::= logical_or_expression += assignment_expression
            //
            case 182: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_plusAssign);             break;
            }  
  
            //
            // Rule 183:  assignment_expression ::= logical_or_expression -= assignment_expression
            //
            case 183: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_minusAssign);             break;
            }  
  
            //
            // Rule 184:  assignment_expression ::= logical_or_expression >>= assignment_expression
            //
            case 184: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_shiftRightAssign);             break;
            }  
  
            //
            // Rule 185:  assignment_expression ::= logical_or_expression <<= assignment_expression
            //
            case 185: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_shiftLeftAssign);             break;
            }  
  
            //
            // Rule 186:  assignment_expression ::= logical_or_expression &= assignment_expression
            //
            case 186: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryAndAssign);             break;
            }  
  
            //
            // Rule 187:  assignment_expression ::= logical_or_expression ^= assignment_expression
            //
            case 187: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryXorAssign);             break;
            }  
  
            //
            // Rule 188:  assignment_expression ::= logical_or_expression |= assignment_expression
            //
            case 188: { action.   consumeExpressionBinaryOperator(ICPPASTBinaryExpression.op_binaryOrAssign);             break;
            }  
  
            //
            // Rule 190:  expression_list ::= <openscope-ast> expression_list_actual
            //
            case 190: { action.   consumeExpressionList();             break;
            }  
  
            //
            // Rule 194:  expression_list_opt ::= $Empty
            //
            case 194: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 196:  expression_opt ::= $Empty
            //
            case 196: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 199:  constant_expression_opt ::= $Empty
            //
            case 199: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 208:  statement ::= ERROR_TOKEN
            //
            case 208: { action.   consumeStatementProblem();             break;
            }  
  
            //
            // Rule 209:  labeled_statement ::= identifier : statement
            //
            case 209: { action.   consumeStatementLabeled();             break;
            }  
  
            //
            // Rule 210:  labeled_statement ::= case constant_expression : statement
            //
            case 210: { action.   consumeStatementCase();             break;
            }  
  
            //
            // Rule 211:  labeled_statement ::= default : statement
            //
            case 211: { action.   consumeStatementDefault();             break;
            }  
  
            //
            // Rule 212:  expression_statement ::= expression ;
            //
            case 212: { action.   consumeStatementExpression();             break;
            }  
  
            //
            // Rule 213:  expression_statement ::= ;
            //
            case 213: { action.   consumeStatementNull();             break;
            }  
  
            //
            // Rule 214:  compound_statement ::= { <openscope-ast> statement_seq }
            //
            case 214: { action.   consumeStatementCompoundStatement(true);             break;
            }  
  
            //
            // Rule 215:  compound_statement ::= { }
            //
            case 215: { action.   consumeStatementCompoundStatement(false);             break;
            }  
  
            //
            // Rule 218:  selection_statement ::= if ( condition ) statement
            //
            case 218: { action.   consumeStatementIf(false);             break;
            }  
  
            //
            // Rule 219:  selection_statement ::= if ( condition ) statement else statement
            //
            case 219: { action.   consumeStatementIf(true);             break;
            }  
  
            //
            // Rule 220:  selection_statement ::= switch ( condition ) statement
            //
            case 220: { action.   consumeStatementSwitch();             break;
            }  
  
            //
            // Rule 222:  condition ::= type_specifier_seq declarator = assignment_expression
            //
            case 222: { action.   consumeConditionDeclaration();             break;
            }  
  
            //
            // Rule 224:  condition_opt ::= $Empty
            //
            case 224: { action.   consumeEmpty();            break;
            }  
  
            //
            // Rule 225:  iteration_statement ::= while ( condition ) statement
            //
            case 225: { action.   consumeStatementWhileLoop();             break;
            }  
  
            //
            // Rule 226:  iteration_statement ::= do statement while ( expression ) ;
            //
            case 226: { action.   consumeStatementDoLoop(true);             break;
            }  
  
            //
            // Rule 227:  iteration_statement ::= do statement
            //
            case 227: { action.   consumeStatementDoLoop(false);             break;
            }  
  
            //
            // Rule 228:  iteration_statement ::= for ( for_init_statement condition_opt ; expression_opt ) statement
            //
            case 228: { action.  consumeStatementForLoop();            break;
            }  
  
            //
            // Rule 230:  for_init_statement ::= simple_declaration_with_declspec
            //
            case 230: { action.   consumeStatementDeclaration();             break;
            }  
  
            //
            // Rule 231:  jump_statement ::= break ;
            //
            case 231: { action.   consumeStatementBreak();             break;
            }  
  
            //
            // Rule 232:  jump_statement ::= continue ;
            //
            case 232: { action.   consumeStatementContinue();             break;
            }  
  
            //
            // Rule 233:  jump_statement ::= return expression ;
            //
            case 233: { action.   consumeStatementReturn(true);             break;
            }  
  
            //
            // Rule 234:  jump_statement ::= return ;
            //
            case 234: { action.   consumeStatementReturn(false);             break;
            }  
  
            //
            // Rule 235:  jump_statement ::= goto identifier_token ;
            //
            case 235: { action.   consumeStatementGoto();             break;
            }  
  
            //
            // Rule 236:  declaration_statement ::= block_declaration
            //
            case 236: { action.   consumeStatementDeclarationWithDisambiguation();             break;
            }  
  
            //
            // Rule 237:  declaration_statement ::= function_definition
            //
            case 237: { action.   consumeStatementDeclaration();             break;
            }  
  
            //
            // Rule 245:  declaration ::= ERROR_TOKEN
            //
            case 245: { action.   consumeDeclarationProblem();             break;
            }  
  
            //
            // Rule 255:  simple_declaration ::= declaration_specifiers_opt <openscope-ast> init_declarator_list_opt ;
            //
            case 255: { action.   consumeDeclarationSimple(true);             break;
            }  
  
            //
            // Rule 256:  simple_declaration_with_declspec ::= declaration_specifiers <openscope-ast> init_declarator_list_opt ;
            //
            case 256: { action.   consumeDeclarationSimple(true);             break;
            }  
  
            //
            // Rule 257:  declaration_specifiers ::= <openscope-ast> simple_declaration_specifiers
            //
            case 257: { action.   consumeDeclarationSpecifiersSimple();             break;
            }  
  
            //
            // Rule 258:  declaration_specifiers ::= <openscope-ast> class_declaration_specifiers
            //
            case 258: { action.   consumeDeclarationSpecifiersComposite();             break;
            }  
  
            //
            // Rule 259:  declaration_specifiers ::= <openscope-ast> elaborated_declaration_specifiers
            //
            case 259: { action.   consumeDeclarationSpecifiersComposite();             break;
            }  
  
            //
            // Rule 260:  declaration_specifiers ::= <openscope-ast> enum_declaration_specifiers
            //
            case 260: { action.   consumeDeclarationSpecifiersComposite();             break;
            }  
  
            //
            // Rule 261:  declaration_specifiers ::= <openscope-ast> type_name_declaration_specifiers
            //
            case 261: { action.   consumeDeclarationSpecifiersTypeName();             break;
            }  
  
            //
            // Rule 263:  declaration_specifiers_opt ::= $Empty
            //
            case 263: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 267:  no_type_declaration_specifier ::= friend
            //
            case 267: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 268:  no_type_declaration_specifier ::= typedef
            //
            case 268: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 288:  storage_class_specifier ::= auto
            //
            case 288: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 289:  storage_class_specifier ::= register
            //
            case 289: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 290:  storage_class_specifier ::= static
            //
            case 290: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 291:  storage_class_specifier ::= extern
            //
            case 291: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 292:  storage_class_specifier ::= mutable
            //
            case 292: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 293:  function_specifier ::= inline
            //
            case 293: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 294:  function_specifier ::= virtual
            //
            case 294: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 295:  function_specifier ::= explicit
            //
            case 295: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 296:  simple_type_specifier ::= simple_type_specifier_token
            //
            case 296: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 310:  type_name_specifier ::= dcolon_opt nested_name_specifier_opt type_name
            //
            case 310: { action.   consumeQualifiedId(false);             break;
            }  
  
            //
            // Rule 311:  type_name_specifier ::= dcolon_opt nested_name_specifier template template_id_name
            //
            case 311: { action.   consumeQualifiedId(false);             break;
            }  
  
            //
            // Rule 312:  type_name_specifier ::= typename dcolon_opt nested_name_specifier identifier_name
            //
            case 312: { action.   consumeQualifiedId(false);             break;
            }  
  
            //
            // Rule 313:  type_name_specifier ::= typename dcolon_opt nested_name_specifier template_opt template_id_name
            //
            case 313: { action.   consumeQualifiedId(true);             break;
            }  
  
            //
            // Rule 315:  elaborated_type_specifier ::= class_keyword elaborated_specifier_hook dcolon_opt nested_name_specifier_opt identifier_name
            //
            case 315: { action.   consumeTypeSpecifierElaborated(false);             break;
            }  
  
            //
            // Rule 316:  elaborated_type_specifier ::= class_keyword elaborated_specifier_hook dcolon_opt nested_name_specifier_opt template_opt template_id_name
            //
            case 316: { action.   consumeTypeSpecifierElaborated(true);              break;
            }  
  
            //
            // Rule 317:  elaborated_type_specifier ::= enum elaborated_specifier_hook dcolon_opt nested_name_specifier_opt identifier_name
            //
            case 317: { action.   consumeTypeSpecifierElaborated(false);             break;
            }  
  
            //
            // Rule 321:  enum_specifier ::= enum enum_specifier_hook { <openscope-ast> enumerator_list_opt comma_opt }
            //
            case 321: { action.   consumeTypeSpecifierEnumeration(false);            break;
            }  
  
            //
            // Rule 322:  enum_specifier ::= enum enum_specifier_hook identifier_token { <openscope-ast> enumerator_list_opt comma_opt }
            //
            case 322: { action.   consumeTypeSpecifierEnumeration(true);            break;
            }  
  
            //
            // Rule 328:  enumerator_definition ::= identifier_token
            //
            case 328: { action.   consumeEnumerator(false);            break;
            }  
  
            //
            // Rule 329:  enumerator_definition ::= identifier_token = constant_expression
            //
            case 329: { action.   consumeEnumerator(true);            break;
            }  
  
            //
            // Rule 331:  namespace_definition ::= namespace namespace_name namespace_definition_hook { <openscope-ast> declaration_seq_opt }
            //
            case 331: { action.   consumeNamespaceDefinition(true);             break;
            }  
  
            //
            // Rule 332:  namespace_definition ::= namespace namespace_definition_hook { <openscope-ast> declaration_seq_opt }
            //
            case 332: { action.   consumeNamespaceDefinition(false);             break;
            }  
  
            //
            // Rule 334:  namespace_alias_definition ::= namespace identifier_token = dcolon_opt nested_name_specifier_opt namespace_name ;
            //
            case 334: { action.   consumeNamespaceAliasDefinition();            break;
            }  
  
            //
            // Rule 335:  using_declaration ::= using typename_opt dcolon_opt nested_name_specifier_opt unqualified_id_name ;
            //
            case 335: { action.   consumeUsingDeclaration();             break;
            }  
  
            //
            // Rule 336:  typename_opt ::= typename
            //
            case 336: { action.   consumePlaceHolder();             break;
            }  
  
            //
            // Rule 337:  typename_opt ::= $Empty
            //
            case 337: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 338:  using_directive ::= using namespace dcolon_opt nested_name_specifier_opt namespace_name ;
            //
            case 338: { action.   consumeUsingDirective();             break;
            }  
  
            //
            // Rule 339:  asm_definition ::= asm ( stringlit ) ;
            //
            case 339: { action.   consumeDeclarationASM();            break;
            }  
  
            //
            // Rule 340:  linkage_specification ::= extern stringlit { <openscope-ast> declaration_seq_opt }
            //
            case 340: { action.   consumeLinkageSpecification();             break;
            }  
  
            //
            // Rule 341:  linkage_specification ::= extern stringlit <openscope-ast> declaration
            //
            case 341: { action.   consumeLinkageSpecification();             break;
            }  
  
            //
            // Rule 346:  init_declarator_complete ::= init_declarator
            //
            case 346: { action.   consumeInitDeclaratorComplete();             break;
            }  
  
            //
            // Rule 348:  init_declarator ::= complete_declarator initializer
            //
            case 348: { action.   consumeDeclaratorWithInitializer(true);             break;
            }  
  
            //
            // Rule 351:  declarator ::= <openscope-ast> ptr_operator_seq direct_declarator
            //
            case 351: { action.   consumeDeclaratorWithPointer(true);             break;
            }  
  
            //
            // Rule 353:  function_declarator ::= <openscope-ast> ptr_operator_seq direct_declarator
            //
            case 353: { action.   consumeDeclaratorWithPointer(true);             break;
            }  
  
            //
            // Rule 357:  basic_direct_declarator ::= declarator_id_name
            //
            case 357: { action.   consumeDirectDeclaratorIdentifier();             break;
            }  
  
            //
            // Rule 358:  basic_direct_declarator ::= ( declarator )
            //
            case 358: { action.   consumeDirectDeclaratorBracketed();             break;
            }  
  
            //
            // Rule 359:  function_direct_declarator ::= basic_direct_declarator ( <openscope-ast> parameter_declaration_clause ) <openscope-ast> cv_qualifier_seq_opt <openscope-ast> exception_specification_opt
            //
            case 359: { action.   consumeDirectDeclaratorFunctionDeclarator(true);             break;
            }  
  
            //
            // Rule 360:  array_direct_declarator ::= array_direct_declarator array_modifier
            //
            case 360: { action.   consumeDirectDeclaratorArrayDeclarator(true);             break;
            }  
  
            //
            // Rule 361:  array_direct_declarator ::= basic_direct_declarator array_modifier
            //
            case 361: { action.   consumeDirectDeclaratorArrayDeclarator(true);             break;
            }  
  
            //
            // Rule 362:  array_modifier ::= [ constant_expression ]
            //
            case 362: { action.   consumeDirectDeclaratorArrayModifier(true);             break;
            }  
  
            //
            // Rule 363:  array_modifier ::= [ ]
            //
            case 363: { action.   consumeDirectDeclaratorArrayModifier(false);             break;
            }  
  
            //
            // Rule 364:  ptr_operator ::= pointer_hook * pointer_hook <openscope-ast> cv_qualifier_seq_opt
            //
            case 364: { action.   consumePointer();             break;
            }  
  
            //
            // Rule 365:  ptr_operator ::= pointer_hook & pointer_hook
            //
            case 365: { action.   consumeReferenceOperator();             break;
            }  
  
            //
            // Rule 366:  ptr_operator ::= dcolon_opt nested_name_specifier pointer_hook * pointer_hook <openscope-ast> cv_qualifier_seq_opt
            //
            case 366: { action.   consumePointerToMember();             break;
            }  
  
            //
            // Rule 373:  cv_qualifier ::= const
            //
            case 373: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 374:  cv_qualifier ::= volatile
            //
            case 374: { action.   consumeToken();            break;
            }  
  
            //
            // Rule 376:  declarator_id_name ::= dcolon_opt nested_name_specifier_opt type_name
            //
            case 376: { action.   consumeQualifiedId(false);             break;
            }  
  
            //
            // Rule 377:  type_id ::= type_specifier_seq
            //
            case 377: { action.   consumeTypeId(false);             break;
            }  
  
            //
            // Rule 378:  type_id ::= type_specifier_seq abstract_declarator
            //
            case 378: { action.   consumeTypeId(true);             break;
            }  
  
            //
            // Rule 381:  abstract_declarator ::= <openscope-ast> ptr_operator_seq
            //
            case 381: { action.   consumeDeclaratorWithPointer(false);             break;
            }  
  
            //
            // Rule 382:  abstract_declarator ::= <openscope-ast> ptr_operator_seq direct_abstract_declarator
            //
            case 382: { action.   consumeDeclaratorWithPointer(true);             break;
            }  
  
            //
            // Rule 386:  basic_direct_abstract_declarator ::= ( abstract_declarator )
            //
            case 386: { action.   consumeDirectDeclaratorBracketed();             break;
            }  
  
            //
            // Rule 387:  basic_direct_abstract_declarator ::= ( )
            //
            case 387: { action.   consumeAbstractDeclaratorEmpty();             break;
            }  
  
            //
            // Rule 388:  array_direct_abstract_declarator ::= array_modifier
            //
            case 388: { action.   consumeDirectDeclaratorArrayDeclarator(false);             break;
            }  
  
            //
            // Rule 389:  array_direct_abstract_declarator ::= array_direct_abstract_declarator array_modifier
            //
            case 389: { action.   consumeDirectDeclaratorArrayDeclarator(true);             break;
            }  
  
            //
            // Rule 390:  array_direct_abstract_declarator ::= basic_direct_abstract_declarator array_modifier
            //
            case 390: { action.   consumeDirectDeclaratorArrayDeclarator(true);             break;
            }  
  
            //
            // Rule 391:  function_direct_abstract_declarator ::= basic_direct_abstract_declarator ( <openscope-ast> parameter_declaration_clause ) <openscope-ast> cv_qualifier_seq_opt <openscope-ast> exception_specification_opt
            //
            case 391: { action.   consumeDirectDeclaratorFunctionDeclarator(true);             break;
            }  
  
            //
            // Rule 392:  function_direct_abstract_declarator ::= ( <openscope-ast> parameter_declaration_clause ) <openscope-ast> cv_qualifier_seq_opt <openscope-ast> exception_specification_opt
            //
            case 392: { action.   consumeDirectDeclaratorFunctionDeclarator(false);             break;
            }  
  
            //
            // Rule 393:  parameter_declaration_clause ::= parameter_declaration_list_opt ...
            //
            case 393: { action.   consumePlaceHolder();             break;
            }  
  
            //
            // Rule 394:  parameter_declaration_clause ::= parameter_declaration_list_opt
            //
            case 394: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 395:  parameter_declaration_clause ::= parameter_declaration_list , ...
            //
            case 395: { action.   consumePlaceHolder();             break;
            }  
  
            //
            // Rule 401:  abstract_declarator_opt ::= $Empty
            //
            case 401: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 402:  parameter_declaration ::= declaration_specifiers parameter_init_declarator
            //
            case 402: { action.   consumeParameterDeclaration();             break;
            }  
  
            //
            // Rule 403:  parameter_declaration ::= declaration_specifiers
            //
            case 403: { action.   consumeParameterDeclarationWithoutDeclarator();             break;
            }  
  
            //
            // Rule 405:  parameter_init_declarator ::= declarator = parameter_initializer
            //
            case 405: { action.   consumeDeclaratorWithInitializer(true);             break;
            }  
  
            //
            // Rule 407:  parameter_init_declarator ::= abstract_declarator = parameter_initializer
            //
            case 407: { action.   consumeDeclaratorWithInitializer(true);             break;
            }  
  
            //
            // Rule 408:  parameter_init_declarator ::= = parameter_initializer
            //
            case 408: { action.   consumeDeclaratorWithInitializer(false);             break;
            }  
  
            //
            // Rule 409:  parameter_initializer ::= assignment_expression
            //
            case 409: { action.   consumeInitializer();             break;
            }  
  
            //
            // Rule 410:  function_definition ::= declaration_specifiers_opt function_declarator <openscope-ast> ctor_initializer_list_opt function_body
            //
            case 410: { action.   consumeFunctionDefinition(false);             break;
            }  
  
            //
            // Rule 411:  function_definition ::= declaration_specifiers_opt function_declarator try <openscope-ast> ctor_initializer_list_opt function_body <openscope-ast> handler_seq
            //
            case 411: { action.   consumeFunctionDefinition(true);             break;
            }  
  
            //
            // Rule 414:  initializer ::= ( expression_list )
            //
            case 414: { action.   consumeInitializerConstructor();             break;
            }  
  
            //
            // Rule 415:  initializer_clause ::= assignment_expression
            //
            case 415: { action.   consumeInitializer();             break;
            }  
  
            //
            // Rule 416:  initializer_clause ::= initializer_list
            //
            case 416: { action.   consumeInitializer();             break;
            }  
  
            //
            // Rule 417:  initializer_list ::= start_initializer_list { <openscope-ast> initializer_seq , } end_initializer_list
            //
            case 417: { action.   consumeInitializerList();             break;
            }  
  
            //
            // Rule 418:  initializer_list ::= start_initializer_list { <openscope-ast> initializer_seq } end_initializer_list
            //
            case 418: { action.   consumeInitializerList();             break;
            }  
  
            //
            // Rule 419:  initializer_list ::= { <openscope-ast> }
            //
            case 419: { action.   consumeInitializerList();             break;
            }  
  
            //
            // Rule 420:  start_initializer_list ::= $Empty
            //
            case 420: { action.   initializerListStart();            break;
            }  
  
            //
            // Rule 421:  end_initializer_list ::= $Empty
            //
            case 421: { action.   initializerListEnd();            break;
            }  
  
            //
            // Rule 426:  class_specifier ::= class_head { <openscope-ast> member_declaration_list_opt }
            //
            case 426: { action.   consumeClassSpecifier();             break;
            }  
  
            //
            // Rule 427:  class_head ::= class_keyword composite_specifier_hook identifier_name_opt class_name_suffix_hook <openscope-ast> base_clause_opt
            //
            case 427: { action.   consumeClassHead(false);             break;
            }  
  
            //
            // Rule 428:  class_head ::= class_keyword composite_specifier_hook template_id_name class_name_suffix_hook <openscope-ast> base_clause_opt
            //
            case 428: { action.   consumeClassHead(false);             break;
            }  
  
            //
            // Rule 429:  class_head ::= class_keyword composite_specifier_hook nested_name_specifier identifier_name class_name_suffix_hook <openscope-ast> base_clause_opt
            //
            case 429: { action.   consumeClassHead(true);             break;
            }  
  
            //
            // Rule 430:  class_head ::= class_keyword composite_specifier_hook nested_name_specifier template_id_name class_name_suffix_hook <openscope-ast> base_clause_opt
            //
            case 430: { action.   consumeClassHead(true);             break;
            }  
  
            //
            // Rule 434:  identifier_name_opt ::= $Empty
            //
            case 434: { action.   consumeEmpty();             break;
            } 
  
            //
            // Rule 438:  visibility_label ::= access_specifier_keyword :
            //
            case 438: { action.   consumeVisibilityLabel();             break;
            }  
  
            //
            // Rule 439:  member_declaration ::= declaration_specifiers_opt <openscope-ast> member_declarator_list ;
            //
            case 439: { action.   consumeDeclarationSimple(true);             break;
            }  
  
            //
            // Rule 440:  member_declaration ::= declaration_specifiers_opt ;
            //
            case 440: { action.   consumeDeclarationSimple(false);             break;
            }  
  
            //
            // Rule 443:  member_declaration ::= dcolon_opt nested_name_specifier template_opt unqualified_id_name ;
            //
            case 443: { action.   consumeMemberDeclarationQualifiedId();             break;
            }  
  
            //
            // Rule 449:  member_declaration ::= ERROR_TOKEN
            //
            case 449: { action.   consumeDeclarationProblem();             break;
            }  
  
            //
            // Rule 458:  member_declarator ::= declarator constant_initializer
            //
            case 458: { action.   consumeMemberDeclaratorWithInitializer();             break;
            }  
  
            //
            // Rule 459:  member_declarator ::= bit_field_declarator : constant_expression
            //
            case 459: { action.   consumeBitField(true);             break;
            }  
  
            //
            // Rule 460:  member_declarator ::= : constant_expression
            //
            case 460: { action.   consumeBitField(false);             break;
            }  
  
            //
            // Rule 461:  bit_field_declarator ::= identifier_name
            //
            case 461: { action.   consumeDirectDeclaratorIdentifier();             break;
            }  
  
            //
            // Rule 462:  constant_initializer ::= = constant_expression
            //
            case 462: { action.   consumeInitializer();             break;
            }  
  
            //
            // Rule 468:  base_specifier ::= dcolon_opt nested_name_specifier_opt class_name
            //
            case 468: { action.   consumeBaseSpecifier(false, false);             break;
            }  
  
            //
            // Rule 469:  base_specifier ::= virtual access_specifier_keyword_opt dcolon_opt nested_name_specifier_opt class_name
            //
            case 469: { action.   consumeBaseSpecifier(true, true);             break;
            }  
  
            //
            // Rule 470:  base_specifier ::= access_specifier_keyword virtual dcolon_opt nested_name_specifier_opt class_name
            //
            case 470: { action.   consumeBaseSpecifier(true, true);             break;
            }  
  
            //
            // Rule 471:  base_specifier ::= access_specifier_keyword dcolon_opt nested_name_specifier_opt class_name
            //
            case 471: { action.   consumeBaseSpecifier(true, false);             break;
            }  
  
            //
            // Rule 472:  access_specifier_keyword ::= private
            //
            case 472: { action.   consumeToken();             break;
            }  
  
            //
            // Rule 473:  access_specifier_keyword ::= protected
            //
            case 473: { action.   consumeToken();             break;
            }  
  
            //
            // Rule 474:  access_specifier_keyword ::= public
            //
            case 474: { action.   consumeToken();             break;
            }  
  
            //
            // Rule 476:  access_specifier_keyword_opt ::= $Empty
            //
            case 476: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 478:  conversion_function_id_name ::= conversion_function_id < <openscope-ast> template_argument_list_opt >
            //
            case 478: { action.   consumeTemplateId();             break;
            }  
  
            //
            // Rule 479:  conversion_function_id ::= operator conversion_type_id
            //
            case 479: { action.   consumeConversionName();            break;
            }  
  
            //
            // Rule 480:  conversion_type_id ::= type_specifier_seq conversion_declarator
            //
            case 480: { action.   consumeTypeId(true);             break;
            }  
  
            //
            // Rule 481:  conversion_type_id ::= type_specifier_seq
            //
            case 481: { action.   consumeTypeId(false);             break;
            }  
  
            //
            // Rule 482:  conversion_declarator ::= <openscope-ast> ptr_operator_seq
            //
            case 482: { action.   consumeDeclaratorWithPointer(false);             break;
            }  
  
            //
            // Rule 488:  mem_initializer ::= mem_initializer_name ( expression_list_opt )
            //
            case 488: { action.   consumeConstructorChainInitializer();             break;
            }  
  
            //
            // Rule 489:  mem_initializer_name ::= dcolon_opt nested_name_specifier_opt class_name
            //
            case 489: { action.   consumeQualifiedId(false);             break;
            }  
  
            //
            // Rule 492:  operator_function_id_name ::= operator_id_name < <openscope-ast> template_argument_list_opt >
            //
            case 492: { action.   consumeTemplateId();             break;
            }  
  
            //
            // Rule 493:  operator_id_name ::= operator overloadable_operator
            //
            case 493: { action.   consumeOperatorName();             break;
            }  
  
            //
            // Rule 536:  template_declaration ::= export_opt template < <openscope-ast> template_parameter_list > declaration
            //
            case 536: { action.   consumeTemplateDeclaration();             break;
            }  
  
            //
            // Rule 537:  export_opt ::= export
            //
            case 537: { action.   consumePlaceHolder();             break;
            }  
  
            //
            // Rule 538:  export_opt ::= $Empty
            //
            case 538: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 542:  template_parameter ::= parameter_declaration
            //
            case 542: { action.   consumeTemplateParamterDeclaration();             break;
            }  
  
            //
            // Rule 543:  type_parameter ::= class identifier_name_opt
            //
            case 543: { action.   consumeSimpleTypeTemplateParameter(false);             break;
            }  
  
            //
            // Rule 544:  type_parameter ::= class identifier_name_opt = type_id
            //
            case 544: { action.   consumeSimpleTypeTemplateParameter(true);             break;
            }  
  
            //
            // Rule 545:  type_parameter ::= typename identifier_name_opt
            //
            case 545: { action.   consumeSimpleTypeTemplateParameter(false);             break;
            }  
  
            //
            // Rule 546:  type_parameter ::= typename identifier_name_opt = type_id
            //
            case 546: { action.   consumeSimpleTypeTemplateParameter(true);             break;
            }  
  
            //
            // Rule 547:  type_parameter ::= template < <openscope-ast> template_parameter_list > class identifier_name_opt
            //
            case 547: { action.   consumeTemplatedTypeTemplateParameter(false);             break;
            }  
  
            //
            // Rule 548:  type_parameter ::= template < <openscope-ast> template_parameter_list > class identifier_name_opt = id_expression
            //
            case 548: { action.   consumeTemplatedTypeTemplateParameter(true);             break;
            }  
  
            //
            // Rule 549:  template_id_name ::= identifier_name < <openscope-ast> template_argument_list_opt >
            //
            case 549: { action.   consumeTemplateId();             break;
            }  
  
            //
            // Rule 556:  nested_name_specifier_inTemplate ::= class_or_namespace_name_inTemplate :: nested_name_specifier_with_template_inTemplate
            //
            case 556: { action.   consumeNestedNameSpecifier(true);             break;
            }  
  
            //
            // Rule 557:  nested_name_specifier_inTemplate ::= class_or_namespace_name_inTemplate ::
            //
            case 557: { action.   consumeNestedNameSpecifier(false);             break;
            }  
  
            //
            // Rule 558:  nested_name_specifier_with_template_inTemplate ::= class_or_namespace_name_with_template_inTemplate :: nested_name_specifier_with_template_inTemplate
            //
            case 558: { action.   consumeNestedNameSpecifier(true);             break;
            }  
  
            //
            // Rule 559:  nested_name_specifier_with_template_inTemplate ::= class_or_namespace_name_with_template_inTemplate ::
            //
            case 559: { action.   consumeNestedNameSpecifier(false);             break;
            }  
  
            //
            // Rule 560:  class_or_namespace_name_with_template_inTemplate ::= template_opt class_or_namespace_name_inTemplate
            //
            case 560: { action.   consumeNameWithTemplateKeyword();             break;
            }  
  
            //
            // Rule 562:  nested_name_specifier_opt_inTemplate ::= $Empty
            //
            case 562: { action.   consumeNestedNameSpecifierEmpty();             break;
            }  
  
            //
            // Rule 565:  type_name_specifier_inTemplate ::= typename dcolon_opt nested_name_specifier identifier_name
            //
            case 565: { action.   consumeQualifiedId(false);             break;
            }  
  
            //
            // Rule 566:  type_name_specifier_inTemplate ::= typename dcolon_opt nested_name_specifier template_opt template_id_name
            //
            case 566: { action.   consumeQualifiedId(true);             break;
            }  
  
            //
            // Rule 571:  declaration_specifiers_inTemplate ::= <openscope-ast> simple_declaration_specifiers
            //
            case 571: { action.   consumeDeclarationSpecifiersSimple();             break;
            }  
  
            //
            // Rule 572:  declaration_specifiers_inTemplate ::= <openscope-ast> class_declaration_specifiers
            //
            case 572: { action.   consumeDeclarationSpecifiersComposite();             break;
            }  
  
            //
            // Rule 573:  declaration_specifiers_inTemplate ::= <openscope-ast> elaborated_declaration_specifiers
            //
            case 573: { action.   consumeDeclarationSpecifiersComposite();             break;
            }  
  
            //
            // Rule 574:  declaration_specifiers_inTemplate ::= <openscope-ast> enum_declaration_specifiers
            //
            case 574: { action.   consumeDeclarationSpecifiersComposite();             break;
            }  
  
            //
            // Rule 575:  declaration_specifiers_inTemplate ::= <openscope-ast> type_name_declaration_specifiers_inTemplate
            //
            case 575: { action.   consumeDeclarationSpecifiersTypeName();             break;
            }  
  
            //
            // Rule 577:  type_id_inTemplate ::= type_specifier_seq_inTemplate
            //
            case 577: { action.   consumeTypeId(false);             break;
            }  
  
            //
            // Rule 578:  type_id_inTemplate ::= type_specifier_seq_inTemplate abstract_declarator
            //
            case 578: { action.   consumeTypeId(true);             break;
            }  
  
            //
            // Rule 579:  template_argument ::= assignment_expression_inTemplate
            //
            case 579: { action.   consumeTemplateArgumentExpression();             break;
            }  
  
            //
            // Rule 580:  template_argument ::= type_id_inTemplate
            //
            case 580: { action.   consumeTemplateArgumentTypeId();             break;
            }  
  
            //
            // Rule 581:  explicit_instantiation ::= template declaration
            //
            case 581: { action.   consumeTemplateExplicitInstantiation();             break;
            }  
  
            //
            // Rule 582:  explicit_specialization ::= template < > declaration
            //
            case 582: { action.   consumeTemplateExplicitSpecialization();             break;
            }  
  
            //
            // Rule 583:  try_block ::= try compound_statement <openscope-ast> handler_seq
            //
            case 583: { action.   consumeStatementTryBlock(true);             break;
            }  
  
            //
            // Rule 584:  try_block ::= try compound_statement
            //
            case 584: { action.   consumeStatementTryBlock(false);             break;
            }  
  
            //
            // Rule 587:  handler ::= catch ( exception_declaration ) compound_statement
            //
            case 587: { action.   consumeStatementCatchHandler(false);             break;
            }  
  
            //
            // Rule 588:  handler ::= catch ( ... ) compound_statement
            //
            case 588: { action.   consumeStatementCatchHandler(true);             break;
            }  
  
            //
            // Rule 589:  exception_declaration ::= type_specifier_seq <openscope-ast> declarator
            //
            case 589: { action.   consumeDeclarationSimple(true);             break;
            }  
  
            //
            // Rule 590:  exception_declaration ::= type_specifier_seq <openscope-ast> abstract_declarator
            //
            case 590: { action.   consumeDeclarationSimple(true);             break;
            }  
  
            //
            // Rule 591:  exception_declaration ::= type_specifier_seq
            //
            case 591: { action.   consumeDeclarationSimple(false);             break;
            }  
  
            //
            // Rule 593:  exception_specification ::= throw ( )
            //
            case 593: { action.   consumePlaceHolder();             break;
            }  
  
            //
            // Rule 599:  type_parameter_start ::= ERROR_TOKEN
            //
            case 599: { action.   consumeEmpty();             break;
            }  

    
            default:
                break;
        }
        return;
    }
}

