Lexer constructor

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

Creates a Pinto lexer for source.

Implementation

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