public static void SetTokens(Tokens tks, Hashtable h) // needed after deserialisation { foreach (Dfa v in h.Values) { if (v.m_tokens!=null) continue; v.m_tokens = tks; Dfa.SetTokens(tks,v.m_map); } }
/// <summary/> /// <param name='tks'></param> public tokens(Tokens tks):base(tks){}
public Dfa(Nfa nfa):base(nfa.m_tks) { m_tokens = m_tks.m_tokens; AddNfaNode(nfa); // the starting node is Closure(start) Closure(); AddActions(); // recursively build the Dfa }
public string m_state = "YYINITIAL"; // exposed for debugging (by request) public Lexer(Tokens tks) { m_state = "YYINITIAL"; tokens = tks; }
public Tfactory(Tokens tks, string cls_name, TCreator cr) { tks.types[cls_name] = cr; }
public cs0tokens(Tokens tks):base(tks){}
public string m_state = "YYINITIAL"; // exposed for debugging (by request) public Lexer(Tokens tks) { m_state="YYINITIAL"; tokens = tks; }
public Tfactory(Tokens tks,string cls_name,TCreator cr) { tks.types[cls_name] = cr; }