/// <summary/> /// <param name='yyq'></param> public OptionalSegment_2_1(Parser yyq):base(yyq){ ((PhonEnvParser )yyq).CreateErrorMessage(PhonEnvParser.SyntaxErrType.missingClosingParen.ToString(), ((TOKEN)(yyq.StackAt(2).m_value)) .yytext, ((error)(yyq.StackAt(0).m_value)) .pos); ((PhonEnvParser )yyq).SyntaxErrorType = PhonEnvParser.SyntaxErrType.missingClosingParen; ((PhonEnvParser )yyq).Position = ((error)(yyq.StackAt(0).m_value)) .pos; }}
public virtual SYMBOL Action(Parser yyp) { SYMBOL symbol1 = (SYMBOL)Sfactory.create(this.m_sym.yytext, yyp); if (symbol1.yyname == this.m_sym.yytext) { SYMBOL symbol2 = yyp.StackAt(this.m_len - 1).m_value; symbol1.m_dollar = this.m_len == 0 || symbol2 == null ? (object)null : symbol2.m_dollar; } return(symbol1); }
public ForLoop_1(Parser yyq):base(yyq, ((ForLoopStatement)(yyq.StackAt(6).m_value)) , ((Expression)(yyq.StackAt(4).m_value)) , ((ForLoopStatement)(yyq.StackAt(2).m_value)) , ((Statement)(yyq.StackAt(0).m_value)) ){}}
public DoWhileStatement_1(Parser yyq):base(yyq, ((Expression)(yyq.StackAt(2).m_value)) , ((Statement)(yyq.StackAt(5).m_value)) ){}}
public IfStatement_2(Parser yyq):base(yyq, ((Expression)(yyq.StackAt(4).m_value)) , ((Statement)(yyq.StackAt(2).m_value)) , ((Statement)(yyq.StackAt(0).m_value)) ){}}
public StateChange_1(Parser yyq):base(yyq, ((IDENT)(yyq.StackAt(0).m_value)) .yytext){}}
public Statement_13(Parser yyq):base(yyq, ((CompoundStatement)(yyq.StackAt(0).m_value)) ){}}
public Statement_11(Parser yyq):base(yyq, ((DoWhileStatement)(yyq.StackAt(0).m_value)) ){}}
public Statement_8(Parser yyq):base(yyq, ((StateChange)(yyq.StackAt(1).m_value)) ){}}
public Declaration_1(Parser yyq):base(yyq, ((Typename)(yyq.StackAt(1).m_value)) .yytext, ((IDENT)(yyq.StackAt(0).m_value)) .yytext){}}
public ArgumentDeclarationList_2(Parser yyq):base(yyq, ((ArgumentDeclarationList)(yyq.StackAt(2).m_value)) , ((Declaration)(yyq.StackAt(0).m_value)) ){}}
public StateEvent_1(Parser yyq):base(yyq, ((Event)(yyq.StackAt(4).m_value)) .yytext, ((ArgumentDeclarationList)(yyq.StackAt(2).m_value)) , ((CompoundStatement)(yyq.StackAt(0).m_value)) ){}}
public StateBody_2(Parser yyq):base(yyq, ((StateBody)(yyq.StackAt(1).m_value)) , ((StateEvent)(yyq.StackAt(0).m_value)) ){}}
public State_2(Parser yyq):base(yyq, ((IDENT)(yyq.StackAt(3).m_value)) .yytext, ((StateBody)(yyq.StackAt(1).m_value)) ){}}
public State_1(Parser yyq):base(yyq, ((DEFAULT_STATE)(yyq.StackAt(3).m_value)) .yytext, ((StateBody)(yyq.StackAt(1).m_value)) ){}}
public Statement_7(Parser yyq):base(yyq, ((JumpStatement)(yyq.StackAt(1).m_value)) ){}}
public CompoundStatement_2(Parser yyq):base(yyq, ((StatementList)(yyq.StackAt(1).m_value)) ){}}
public Statement_9(Parser yyq):base(yyq, ((IfStatement)(yyq.StackAt(0).m_value)) ){}}
public StatementList_2(Parser yyq):base(yyq, ((StatementList)(yyq.StackAt(1).m_value)) , ((Statement)(yyq.StackAt(0).m_value)) ){}}
public Statement_12(Parser yyq):base(yyq, ((ForLoop)(yyq.StackAt(0).m_value)) ){}}
public Statement_1(Parser yyq):base(yyq, ((EmptyStatement)(yyq.StackAt(1).m_value)) ){}}
public JumpStatement_1(Parser yyq):base(yyq, ((IDENT)(yyq.StackAt(0).m_value)) .yytext){}}
public Statement_2(Parser yyq):base(yyq, ((Declaration)(yyq.StackAt(1).m_value)) ){}}
public StateChange_2(Parser yyq):base(yyq, ((DEFAULT_STATE)(yyq.StackAt(0).m_value)) .yytext){}}
public Statement_3(Parser yyq):base(yyq, ((Assignment)(yyq.StackAt(1).m_value)) ){}}
public IfStatement_4(Parser yyq):base(yyq, ((SimpleAssignment)(yyq.StackAt(4).m_value)) , ((Statement)(yyq.StackAt(2).m_value)) , ((Statement)(yyq.StackAt(0).m_value)) ){}}
public Statement_4(Parser yyq):base(yyq, ((Expression)(yyq.StackAt(1).m_value)) ){}}
public DoWhileStatement_2(Parser yyq):base(yyq, ((SimpleAssignment)(yyq.StackAt(2).m_value)) , ((Statement)(yyq.StackAt(5).m_value)) ){}}
public Statement_5(Parser yyq):base(yyq, ((ReturnStatement)(yyq.StackAt(1).m_value)) ){}}
public virtual SYMBOL Action(Parser yyp) { SYMBOL s = (SYMBOL)Sfactory.create(m_sym.yytext,yyp); if (s.yyname==m_sym.yytext) { // provide for the default $$ = $1 action if possible SYMBOL t = yyp.StackAt(m_len-1).m_value; s.m_dollar = (m_len==0 || t==null)? null : t.m_dollar; } return s; }
public Statement_6(Parser yyq):base(yyq, ((JumpLabel)(yyq.StackAt(1).m_value)) ){}}