Class: Rley::Parser::NoInput
- Inherits:
-
ErrorReason
- Object
- ErrorReason
- Rley::Parser::NoInput
- Defined in:
- lib/rley/parser/error_reason.rb
Overview
This parse error occurs when no input for parsing was provided while the grammar requires some non-empty input.
Instance Attribute Summary
Attributes inherited from ErrorReason
Instance Method Summary collapse
-
#initialize ⇒ NoInput
constructor
A new instance of NoInput.
-
#to_s ⇒ Object
Returns the reason's message.
Methods inherited from ErrorReason
Constructor Details
#initialize ⇒ NoInput
Returns a new instance of NoInput.
33 34 35 |
# File 'lib/rley/parser/error_reason.rb', line 33 def initialize super(0) end |
Instance Method Details
#to_s ⇒ Object
Returns the reason's message.
38 39 40 |
# File 'lib/rley/parser/error_reason.rb', line 38 def to_s 'Input cannot be empty.' end |