Exception: LLIP::NotAllowedTokenError
- Inherits:
-
ParserError
- Object
- StandardError
- LLIPError
- ParserError
- LLIP::NotAllowedTokenError
- Defined in:
- lib/llip/llip_error.rb
Instance Attribute Summary
Attributes inherited from LLIPError
Instance Method Summary collapse
-
#initialize(token, production) ⇒ NotAllowedTokenError
constructor
A new instance of NotAllowedTokenError.
Methods inherited from LLIPError
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 |