コード例 #1
0
ファイル: Lexer.cs プロジェクト: devjerome/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);
     }
 }
コード例 #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();
 }
コード例 #3
0
 public override void Accept(ILexerVisitor visitor)
 {
     visitor.Visit(this);
 }
コード例 #4
0
 public abstract void Accept(ILexerVisitor visitor);
コード例 #5
0
ファイル: Token.cs プロジェクト: jcaillon/3P
 public abstract void Accept(ILexerVisitor visitor);
コード例 #6
0
ファイル: Token.cs プロジェクト: jcaillon/3P
 public override void Accept(ILexerVisitor visitor)
 {
     visitor.Visit(this);
 }
コード例 #7
0
ファイル: Lexer.cs プロジェクト: 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);
     }
 }