示例#1
0
        public override void Pass(ref ParseStackEntry top)
        {
            Parser yyps = top.yyps;

            if (this.m_action == null)
            {
                yyps.Push(top);
                top = new ParseStackEntry(yyps, this.m_next.m_state, yyps.NextSym());
            }
            else
            {
                yyps.Push(new ParseStackEntry(yyps, top.m_state, this.m_action.Action(yyps)));
                top.m_state = this.m_next.m_state;
            }
        }
示例#2
0
 public virtual void Pass(ref ParseStackEntry top)
 {
 }
示例#3
0
文件: error.cs 项目: m33p/radegast
 public error(Parser yyp, ParseStackEntry s)
     : base(yyp)
 {
     this.state = s.m_state;
     this.sym   = s.m_value;
 }