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