/// <summary> /// Feed this method with a visitor implementing ILexerVisitor to visit all the tokens of the input string /// (you must call the Tokenize() methode before that!) /// </summary> /// <param name="visitor"></param> public void Accept(ILexerVisitor visitor) { foreach (Token token in _tokenList) { token.Accept(visitor); } }
/// <summary> /// Feed this method with a visitor implementing ILexerVisitor to visit all the tokens of the input string /// (you must call the Tokenize() methode before that!) /// </summary> /// <param name="visitor"></param> public virtual void Accept(ILexerVisitor visitor) { visitor.PreVisit(this); foreach (Token token in _tokenList) { token.Accept(visitor); } visitor.PostVisit(); }
public override void Accept(ILexerVisitor visitor) { visitor.Visit(this); }
public abstract void Accept(ILexerVisitor visitor);