/// <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);}
Beispiel #4
0
		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) {}}
Beispiel #8
0
 public CSToolsException(int n, Lexer yl, int p, string y, string s) : this(n, yl.line(p), yl.position(p), y, s)
 {
 }
Beispiel #9
0
 public CSToolsFatalException(int n, Lexer yl, string s) : base(n, yl, yl.yytext, s)
 {
 }
Beispiel #10
0
 public CSToolsException(int n, Lexer yl, string s) : this(n, yl, yl.yytext, s)
 {
 }
Beispiel #11
0
 public CSToolsException(int n, Lexer yl, string yy, string s) : this(n, yl, yl.m_pch, yy, s)
 {
 }
Beispiel #12
0
 public _Enumerator(Lexer x)
 {
     lxr = x;  t = null;
 }
Beispiel #13
0
 /// <exclude/>
 public SourceLineInfo(Lexer lx, int pos) : this(lx.m_LineManager, pos)
 {
     lxr = lx;
 }                                                                                // 4.5c
Beispiel #14
0
 /// <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;
}}
Beispiel #16
0
 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) {}}
Beispiel #18
0
 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) {}}
Beispiel #20
0
 public virtual TOKEN OldAction(Lexer yyl, string yytext, int action, ref bool reject)
 {
     return(null);
 }
Beispiel #21
0
		public Parser(YyParser syms,Lexer lexer) 
		{
			m_lexer = lexer;
			m_symbols = syms;
			m_symbols.erh = m_lexer.tokens.erh;
		}
Beispiel #22
0
 public SYMBOL(Lexer yyl)
 {
     yylx = yyl;
 }
Beispiel #23
0
 /// <exclude/>
 public CSToolsException(int en, Lexer yl, int p, string y, string s) : this(en, yl.sourceLineInfo(p), y, s)
 {
 }
Beispiel #24
0
 public SYMBOL(Parser yyp)
 {
     yyps = yyp; yylx = yyp.m_lexer;
 }
/// <exclude/>
public static object ID_factory(Lexer yyl) { return new ID(yyl);}
Beispiel #26
0
 protected object Tokenfactory(Lexer yyl)
 {
     return(new TOKEN(yyl));
 }
/// <exclude/>
public static object NEW_factory(Lexer yyl) { return new NEW(yyl);}
Beispiel #28
0
 public TOKEN(Lexer yyl, string s)
     : base(yyl)
 {
     this.m_str = s;
 }
/// <exclude/>
public static object ANY_factory(Lexer yyl) { return new ANY(yyl);}
Beispiel #30
0
 public EQUALS(Lexer yyl):base(yyl) {}}
/// <exclude/>
public static object BASE_factory(Lexer yyl) { return new BASE(yyl);}
Beispiel #32
0
 public LEFT_PAREN(Lexer yyl):base(yyl) {}}
/// <exclude/>
 public NEW(Lexer yyl):base(yyl) {}}
Beispiel #34
0
 public RIGHT_PAREN(Lexer yyl):base(yyl) {}}
/// <exclude/>
 public ANY(Lexer yyl):base(yyl) {}}
Beispiel #36
0
 public PLUS(Lexer yyl):base(yyl) {}}
/// <exclude/>
 public SEMICOLON(Lexer yyl):base(yyl) {}}
Beispiel #38
0
 public MINUS(Lexer yyl):base(yyl) {}}
/// <exclude/>
 public RPAREN(Lexer yyl):base(yyl) {}}
/// <exclude/>
 public BASE(Lexer yyl):base(yyl) {}}
Beispiel #41
0
		public CSymbol(Lexer yyl):base(yyl) {}
/// <exclude/>
 public THIS(Lexer yyl):base(yyl) {}}
Beispiel #43
0
		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);}
Beispiel #45
0
		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);
		}
Beispiel #46
0
 public SYMBOL(Parser yyp)
 {
     yyps = yyp; yylx = yyp != null ? yyp.m_lexer : null;
 }