Beispiel #1
0
		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);
			}
		}
Beispiel #2
0
/// <summary/>
/// <param name='tks'></param>
public tokens(Tokens tks):base(tks){}
Beispiel #3
0
		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
		}
Beispiel #4
0
        public string m_state = "YYINITIAL";         // exposed for debugging (by request)

        public Lexer(Tokens tks)
        {
            m_state = "YYINITIAL";
            tokens  = tks;
        }
Beispiel #5
0
 public Tfactory(Tokens tks, string cls_name, TCreator cr)
 {
     tks.types[cls_name] = cr;
 }
Beispiel #6
0
public cs0tokens(Tokens tks):base(tks){}
Beispiel #7
0
		public string m_state = "YYINITIAL"; // exposed for debugging (by request)

		public Lexer(Tokens tks)
		{
			m_state="YYINITIAL";
			tokens = tks;
		}
Beispiel #8
0
		public Tfactory(Tokens tks,string cls_name,TCreator cr)
		{
			tks.types[cls_name] = cr;
		}