Beispiel #1
0
        protected Tokenizer(string source)
        {
            this.source = source;

            pos = 0;
            Line = 1;
            lineStart = 0;
            Lookahead = Next();
        }
Beispiel #2
0
 protected Token Lex()
 {
     var prev = Lookahead;
     Lookahead = Next();
     return prev;
 }
Beispiel #3
0
 Exception OnUnexpectedError(Token token)
 {
     return new UnexpectedTokenException(Line, Column(), token);
 }