Method: Aspen::CustomGrammar::Lexer#no_match

Defined in:
lib/aspen/custom_grammar/lexer.rb

#no_match(scanner, state) ⇒ Object

Raises:



69
70
71
72
# File 'lib/aspen/custom_grammar/lexer.rb', line 69

def no_match(scanner, state)
  raise Aspen::LexError,
          Aspen::Errors.messages(:unexpected_token, scanner, state)
end