Bike.Parser.Lexer.Lexer C# (CSharp) Method

Lexer() public method

public Lexer ( string source, string filePath = null ) : System
source string
filePath string
return 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];
        }