Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
 /// <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();
 }
Ejemplo n.º 3
0
 public override void Accept(ILexerVisitor visitor)
 {
     visitor.Visit(this);
 }
Ejemplo n.º 4
0
 public abstract void Accept(ILexerVisitor visitor);
Ejemplo n.º 5
0
Archivo: Token.cs Proyecto: jcaillon/3P
 public abstract void Accept(ILexerVisitor visitor);
Ejemplo n.º 6
0
Archivo: Token.cs Proyecto: jcaillon/3P
 public override void Accept(ILexerVisitor visitor)
 {
     visitor.Visit(this);
 }
Ejemplo n.º 7
0
Archivo: Lexer.cs Proyecto: jcaillon/3P
 /// <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);
     }
 }