Exception: Lox::LexicalAnalyzer::InvalidState

Inherits:
StandardError
  • Object
show all
Defined in:
lib/lox/lexical_analyzer/invalid_state.rb

Instance Method Summary collapse

Constructor Details

#initialize(state) ⇒ InvalidState

Returns a new instance of InvalidState.



6
7
8
# File 'lib/lox/lexical_analyzer/invalid_state.rb', line 6

def initialize(state)
  super("Invalid state: #{state}")
end