⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 itoken_visitor.cs

📁 csharp-solution,C#高效编程源码
💻 CS
字号:

namespace CSharp
{
    /// <remarks>
    /// The specific kinds of derived token interfaces are
    /// not complete. For example, there are no interface
    /// class representing any of the literals. Any unrecognised
    /// token causes the remainder of the source file line
    /// to be classified as an IOtherToken. For example,
    /// in this code:
    /// <code>
    /// string message = "Hello"; int answer = 42;
    /// </code>
    /// there are five tokens:
    /// 'string' (a Keyword token),
    /// ' ' (a Whitespace token),
    /// 'message' (an Identifier token),
    /// ' ' (a Whitespace token)
    /// and '= "Hello"; int answer = 42;' (an Other token)
    /// </remarks>      
    
    public interface ITokenVisitor
    {
        void Visit(ILineStartToken t);
        void Visit(ILineEndToken   t);

        void Visit(ICommentToken    t);
        void Visit(IDirectiveToken  t);
        void Visit(IIdentifierToken t);
        void Visit(IKeywordToken    t);
        void Visit(IWhiteSpaceToken t);

        void Visit(IOtherToken t);
    }    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -