/// <exclude/> public static object RBRACE_factory(Lexer yyl) { return new RBRACE(yyl);}
/// <exclude/> public static object RPAREN_factory(Lexer yyl) { return new RPAREN(yyl);}
/// <exclude/> public static object SEMICOLON_factory(Lexer yyl) { return new SEMICOLON(yyl);}
public int[] arr; // defined in generated subclass public void GetEOF(Lexer yyl) { EOFSymbol = (EOF)symbols["EOF"]; if (EOFSymbol==null) EOFSymbol = new EOF(yyl); }
/// <exclude/> public static object LBRACK_factory(Lexer yyl) { return new LBRACK(yyl);}
/// <exclude/> public COLON(Lexer yyl):base(yyl) {}}
/// <exclude/> public RBRACK(Lexer yyl):base(yyl) {}}
public CSToolsException(int n, Lexer yl, int p, string y, string s) : this(n, yl.line(p), yl.position(p), y, s) { }
public CSToolsFatalException(int n, Lexer yl, string s) : base(n, yl, yl.yytext, s) { }
public CSToolsException(int n, Lexer yl, string s) : this(n, yl, yl.yytext, s) { }
public CSToolsException(int n, Lexer yl, string yy, string s) : this(n, yl, yl.m_pch, yy, s) { }
public _Enumerator(Lexer x) { lxr = x; t = null; }
/// <exclude/> public SourceLineInfo(Lexer lx, int pos) : this(lx.m_LineManager, pos) { lxr = lx; } // 4.5c
/// <exclude/> public CSToolsStopException(int n, Lexer yl, int p, string y, string s) : base(n, yl, p, y, s) { }
/// <exclude/> public override TOKEN OldAction(Lexer yym,ref string yytext,int action, ref bool reject) { switch(action) { case -1: break; case 74: { yytext="(("+((cs0tokens)yym).Out+")yyq)"; return new ANY(yym); } break; case 55: { yytext="(("+((cs0tokens)yym).Out+")yym)"; return new ANY(yym); } break; case 8: { yytext ="yym.yy_begin"; return new ANY(yym); } break; case 2: ; break; } return null; }}
public CSToolsFatalException(int n, Lexer yl, string yy, string s) : base(n, yl, yl.m_pch, yy, s) { }
/// <exclude/> public ID(Lexer yyl):base(yyl) {}}
public CSToolsFatalException(int n, Lexer yl, int p, string y, string s) : base(n, yl.line(p), yl.position(p), y, s) { }
/// <exclude/> public LBRACE(Lexer yyl):base(yyl) {}}
public virtual TOKEN OldAction(Lexer yyl, string yytext, int action, ref bool reject) { return(null); }
public Parser(YyParser syms,Lexer lexer) { m_lexer = lexer; m_symbols = syms; m_symbols.erh = m_lexer.tokens.erh; }
public SYMBOL(Lexer yyl) { yylx = yyl; }
/// <exclude/> public CSToolsException(int en, Lexer yl, int p, string y, string s) : this(en, yl.sourceLineInfo(p), y, s) { }
public SYMBOL(Parser yyp) { yyps = yyp; yylx = yyp.m_lexer; }
/// <exclude/> public static object ID_factory(Lexer yyl) { return new ID(yyl);}
protected object Tokenfactory(Lexer yyl) { return(new TOKEN(yyl)); }
/// <exclude/> public static object NEW_factory(Lexer yyl) { return new NEW(yyl);}
public TOKEN(Lexer yyl, string s) : base(yyl) { this.m_str = s; }
/// <exclude/> public static object ANY_factory(Lexer yyl) { return new ANY(yyl);}
public EQUALS(Lexer yyl):base(yyl) {}}
/// <exclude/> public static object BASE_factory(Lexer yyl) { return new BASE(yyl);}
public LEFT_PAREN(Lexer yyl):base(yyl) {}}
/// <exclude/> public NEW(Lexer yyl):base(yyl) {}}
public RIGHT_PAREN(Lexer yyl):base(yyl) {}}
/// <exclude/> public ANY(Lexer yyl):base(yyl) {}}
public PLUS(Lexer yyl):base(yyl) {}}
/// <exclude/> public SEMICOLON(Lexer yyl):base(yyl) {}}
public MINUS(Lexer yyl):base(yyl) {}}
/// <exclude/> public RPAREN(Lexer yyl):base(yyl) {}}
/// <exclude/> public BASE(Lexer yyl):base(yyl) {}}
public CSymbol(Lexer yyl):base(yyl) {}
/// <exclude/> public THIS(Lexer yyl):base(yyl) {}}
public EOF(Lexer yyl):base(yyl) { yytext = "EOF"; pos = yyl.m_LineManager.end; // 4.5b m_symtype = SymType.eofsymbol; }
/// <exclude/> public static object THIS_factory(Lexer yyl) { return new THIS(yyl);}
public void GetParser(Lexer m_lexer) { Serialiser b = new Serialiser(arr); b.VersionCheck(); m_startSymbol = (CSymbol)b.Deserialise(); m_startSymbol.kids = new ObjectList(); // 4.2a m_accept = (ParseState)b.Deserialise(); m_states = (Hashtable)b.Deserialise(); literals = (Hashtable)b.Deserialise(); symbolInfo = (Hashtable)b.Deserialise(); m_concrete = (bool)b.Deserialise(); GetEOF(m_lexer); }
public SYMBOL(Parser yyp) { yyps = yyp; yylx = yyp != null ? yyp.m_lexer : null; }