emit method

dynamic emit(
  1. String type
)

Implementation

emit(String type) {
  lexemes.add(Lexeme(
    type: LexemeType.fromString(type),
    str: sliceString(),
    start: start,
    end: pos,
  ));

  start = pos;
}