Exception: ShuntingYard::UnknownTokenError

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

Instance Method Summary collapse

Constructor Details

#initialize(token, position) ⇒ UnknownTokenError

Returns a new instance of UnknownTokenError.



17
18
19
# File 'lib/shunting_yard/errors.rb', line 17

def initialize(token, position)
  super "Unknown token '#{token}' at position #{position}"
end