示例#1
0
 private bool Match(SetTokenType type)
 {
     if (m_curToken.Type == type) {
         m_curToken = NextToken ();
         return true;
     } else
         throw new Exception (string.Format ("Invalid token - Expecting : {0}", type));
 }
示例#2
0
 private bool Match(SetTokenType type)
 {
     if (m_curToken.Type == type)
     {
         m_curToken = NextToken();
         return(true);
     }
     else
     {
         throw new Exception(string.Format("Invalid token - Expecting : {0}", type));
     }
 }
示例#3
0
 public SetToken(SetTokenType type, string tokvalue, int linenum)
 {
     Type       = type;
     Value      = tokvalue;
     LineNumber = linenum;
 }
示例#4
0
 public SetToken(SetTokenType type, string tokvalue, int linenum)
 {
     Type = type;
     Value = tokvalue;
     LineNumber = linenum;
 }