Token constructor

const Token({
  1. required TokenType type,
  2. required String lexeme,
  3. required int line,
  4. required int column,
})

Creates a Lox program token.

Implementation

const Token({
  required this.type,
  required this.lexeme,
  required this.line,
  required this.column,
});