/// <summary> /// Instantiate a new KeywordToken /// </summary> /// <param name="Keyword">String for keyword</param> /// <param name="TokenConstructor">Delegate that returns a new Token, It must implement ExcecuteStatement() </param> public KeywordTokenConstructor(String Keyword, TokenConstructorDelegate TokenConstructor) { if (TokenConstructor == null) { throw new NullReferenceException("TokenConstructor can't be NULL"); } this.Keyword = Keyword.ToLower(); this.TokenConstructor = TokenConstructor; }
/// <summary> /// Instantiate a new KeywordToken /// </summary> /// <param name="Keyword">String for keyword</param> /// <param name="TokenConstructor">Delegate that returns a new Token, It must implement ExcecuteStatement() </param> public KeywordTokenConstructor(String Keyword, TokenConstructorDelegate TokenConstructor) { if (TokenConstructor == null) throw new NullReferenceException("TokenConstructor can't be NULL"); this.Keyword = Keyword.ToLower(); this.TokenConstructor = TokenConstructor; }