Method: Lexer#emitToken

Defined in:
lib/antlr4/Lexer.rb

#emitToken(token) ⇒ Object

By default does not support multiple emits per nextToken invocation

for efficiency reasons.  Subclass and override self method, nextToken,
and getToken (to push tokens into a list and pull from that list
rather than a single variable as self implementation does).

/



198
199
200
# File 'lib/antlr4/Lexer.rb', line 198

def emitToken(token)
    self.token = token
end