Lexer constructor

Lexer(
  1. String text, {
  2. String? filename,
  3. int currentLine = 1,
  4. int index = 0,
  5. int? endOfFile,
})

Implementation

Lexer(String text,
    {this.filename, this.currentLine = 1, this.index = 0, this.endOfFile}) {
  input = text.codeUnits;
  endOfFile ??= input.length;
}