public final java_cup.runtime.Symbol do_action( int CUP$parser$act_num, java_cup.runtime.lr_parser CUP$parser$parser, java.util.Stack CUP$parser$stack, int CUP$parser$top, parser parser) throws java.lang.Exception { java_cup.runtime.Symbol CUP$parser$result; // n_binary_component ::= NK_COMPONENT c_curly_open c_curly_close { BinaryComponent RESULT = null; Token rl = (Token) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top - 2)).value; Token rr = (Token) ((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value; RESULT = new BinaryComponent( parser.missing("binary component", "identifier", rl.getRight()), null, null); RESULT.setLeft(rl.getLeft()); RESULT.setRight(rr.getRight()); CUP$parser$result = parser .getSymbolFactory() .newSymbol( "n_binary_component", 194, ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top - 2)), ((java_cup.runtime.Symbol) CUP$parser$stack.peek()), RESULT); } return CUP$parser$result; }
public final java_cup.runtime.Symbol do_action( int CUP$parser$act_num, java_cup.runtime.lr_parser CUP$parser$parser, java.util.Stack CUP$parser$stack, int CUP$parser$top, parser parser) throws java.lang.Exception { java_cup.runtime.Symbol CUP$parser$result; // n_module_head ::= n_module_generic { Module RESULT = null; Module h = (Module) ((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value; RESULT = h; h.setField(Module.NAME, parser.missing("module", "identifier", h.getRange().getRight())); CUP$parser$result = parser .getSymbolFactory() .newSymbol( "n_module_head", 157, ((java_cup.runtime.Symbol) CUP$parser$stack.peek()), ((java_cup.runtime.Symbol) CUP$parser$stack.peek()), RESULT); } return CUP$parser$result; }
public final java_cup.runtime.Symbol do_action( int CUP$parser$act_num, java_cup.runtime.lr_parser CUP$parser$parser, java.util.Stack CUP$parser$stack, int CUP$parser$top, parser parser) throws java.lang.Exception { java_cup.runtime.Symbol CUP$parser$result; // c_compound_literal_head ::= c_round_open c_round_close { CompoundLiteral RESULT = null; Token rl = (Token) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top - 1)).value; Token rr = (Token) ((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value; RESULT = new CompoundLiteral( parser.missing("compound literal", "type name", rl.getLeft(), rr.getRight()), null); CUP$parser$result = parser .getSymbolFactory() .newSymbol( "c_compound_literal_head", 34, ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top - 1)), ((java_cup.runtime.Symbol) CUP$parser$stack.peek()), RESULT); } return CUP$parser$result; }
public final java_cup.runtime.Symbol do_action( int CUP$parser$act_num, java_cup.runtime.lr_parser CUP$parser$parser, java.util.Stack CUP$parser$stack, int CUP$parser$top, parser parser) throws java.lang.Exception { java_cup.runtime.Symbol CUP$parser$result; // n_configuration ::= NK_GENERIC NK_CONFIGURATION error n_component_parameters // n_attributes_no_init n_uses_or_provides_block { Configuration RESULT = null; Token rl = (Token) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top - 5)).value; Token rr = (Token) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top - 4)).value; TemplateParameterList p = (TemplateParameterList) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top - 2)).value; AttributeList a = (AttributeList) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top - 1)).value; AccessList u = (AccessList) ((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value; RESULT = new Configuration( true, parser.errorNode("configuration", "identifier"), p, a, u, parser.missing("configuration", "implementation", u.getRange().getRight())); RESULT.setLeft(rl.getLeft()); CUP$parser$result = parser .getSymbolFactory() .newSymbol( "n_configuration", 180, ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top - 5)), ((java_cup.runtime.Symbol) CUP$parser$stack.peek()), RESULT); } return CUP$parser$result; }