Lexer constructor

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

Implementation

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