def emit(self, string, match, pattern, **_):
return grammar.Token(name=pattern.name, value=string,<EOL>start=match.start(), end=match.end())<EOL>
Emits a token using the current pattern match and pattern label.