Exception: Lox::LexicalAnalyzer::UnterminatedString
- Inherits:
-
StandardError
- Object
- StandardError
- Lox::LexicalAnalyzer::UnterminatedString
- Defined in:
- lib/lox/lexical_analyzer/unterminated_string.rb
Instance Method Summary collapse
-
#initialize(lexeme) ⇒ UnterminatedString
constructor
A new instance of UnterminatedString.
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 |