Scanner constructor

Scanner({
  1. required String source,
  2. ErrorHandler? errorHandler,
})

Creates a Lox scanner for source.

Implementation

Scanner({
  required String source,
  ErrorHandler? errorHandler,
})  : _errorHandler = errorHandler,
      _source = source;