Exception: Lox::LexicalAnalyzer::UnterminatedString

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

Instance Method Summary collapse

Constructor Details

#initialize(lexeme) ⇒ UnterminatedString

Returns a new instance of UnterminatedString.



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

def initialize(lexeme)
  super("Unterminated string: #{lexeme}")
end