Exception: LLIP::NotAllowedTokenError

Inherits:
ParserError show all
Defined in:
lib/llip/llip_error.rb

Instance Attribute Summary

Attributes inherited from LLIPError

#token

Instance Method Summary collapse

Methods inherited from LLIPError

#internal_message, #to_s

Constructor Details

#initialize(token, production) ⇒ NotAllowedTokenError

Returns a new instance of NotAllowedTokenError.



39
40
41
# File 'lib/llip/llip_error.rb', line 39

def initialize(token,production)
  super token, "the token '#{token.value}' matched by the regexp '#{token.name}' isn't allowed in production #{production}."
end