Exception: ShuntingYard::UnknownOperatorError

Inherits:
Error
  • Object
show all
Defined in:
lib/shunting_yard/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ UnknownOperatorError

Returns a new instance of UnknownOperatorError.



23
24
25
# File 'lib/shunting_yard/errors.rb', line 23

def initialize(token)
  super "Unknown operator '#{token.lexeme}'"
end