class Rley::Parser::PrematureInputEnd
This parse error occurs when all input tokens were consumed but the parser still expected one or more tokens from the input.
Public Instance Methods
Source
# File lib/rley/parser/error_reason.rb, line 100 def to_s err_msg = +"Premature end of input after '#{last_token.lexeme}'" err_msg << " at position #{position}\n" err_msg << "#{expectations}." return err_msg end
Returns the reason’s message.