scanTokens method
Scans the source and returns the tokens.
Implementation
List<Token> scanTokens() {
while (!_isAtEnd) {
_start = _current;
_scanToken();
}
_tokens.add(
Token(
type: TokenType.endOfFile,
lexeme: '',
column: _column,
line: _line,
),
);
return _tokens;
}