Exception: Layo::UnknownTokenError
- Inherits:
-
SyntaxError
- Object
- RuntimeError
- SyntaxError
- Layo::UnknownTokenError
- Defined in:
- lib/layo/unknown_token_error.rb
Instance Attribute Summary
Attributes inherited from SyntaxError
Instance Method Summary collapse
-
#initialize(lexeme) ⇒ UnknownTokenError
constructor
A new instance of UnknownTokenError.
Methods inherited from SyntaxError
Constructor Details
#initialize(lexeme) ⇒ UnknownTokenError
Returns a new instance of UnknownTokenError.
3 4 5 |
# File 'lib/layo/unknown_token_error.rb', line 3 def initialize(lexeme) super lexeme[1], lexeme[2], "Unknown token '#{lexeme[0]}'" end |