class RLTK::HandledError

An error of this type is raised when the parser encountered a error that was handled by an error production.

Attributes

errors[R]

The errors as reported by the parser.

@return [Array<Object>]

result[R]

The result that would have been returned by the call to parse.

Public Class Methods

new(errors, result) click to toggle source

Instantiate a new HandledError object with errors.

@param [Array<Object>] errors Errors added to the parsing environment by calls to {Parser::Environment#error}. @param [Object] result Object resulting from parsing Tokens before the error occurred.

# File lib/rltk/parser.rb, line 73
def initialize(errors, result)
        @errors = errors
        @result = result
end