Scanner constructor
Scanner({
- required String source,
- ErrorHandler? errorHandler,
Creates a Lox scanner for source
.
Implementation
Scanner({
required String source,
ErrorHandler? errorHandler,
}) : _errorHandler = errorHandler,
_source = source;