Exception: Grammar::PreProcessorError
- Inherits:
-
ParserError
- Object
- StandardError
- ParserError
- Grammar::PreProcessorError
- Defined in:
- lib/emerald/grammar.rb
Overview
When the parser fails on a line added only in preprocessing
Constant Summary
Constants inherited from ParserError
Grammar::ParserError::LINES_AFTER, Grammar::ParserError::LINES_BEFORE
Instance Method Summary collapse
Methods inherited from ParserError
Constructor Details
This class inherits a constructor from Grammar::ParserError
Instance Method Details
#say ⇒ Object
55 56 57 58 59 60 61 62 |
# File 'lib/emerald/grammar.rb', line 55 def say = [] << "Error parsing in pre-processed Emerald. This is likely a bug." << @reason .concat(@source.lines.with_index { |line, i| puts "#{i + 1} #{line}" }) .join("\n") end |