Bike.Parser.Lexer.Lexer C# (CSharp) 메소드

Lexer() 공개 메소드

public Lexer ( string source, string filePath = null ) : System
source string
filePath string
리턴 System
        public Lexer(string source, string filePath = null)
        {
            if (source == null)
                throw new ArgumentNullException("source");
            this.filePath = filePath ?? "<no file>";
            sourceChars = source.ToCharArray();
            totalChars = sourceChars.Length;
            currentChar = totalChars == 0
                ? Eof
                : sourceChars[0];
        }