Parser constructor
Parser({
- required List<
Token> tokens, - ErrorHandler? errorHandler,
Creates a Lox parser.
Implementation
Parser({
required List<Token> tokens,
ErrorHandler? errorHandler,
}) : _errorHandler = errorHandler,
_tokens = tokens;