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)); }
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)); } }
public SetToken(SetTokenType type, string tokvalue, int linenum) { Type = type; Value = tokvalue; LineNumber = linenum; }