class CLTK::HandledError

Overview

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

Defined in:

cltk/parser/exceptions/handled_error_exception.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

in?(collection : Array | Set) in?

Constructor Detail

def self.new(errors : Array(CLTK::Type), result : CLTK::Type) #

[View source]

Instance Method Detail

def errors : Array(CLTK::Type) #

The errors as reported by the parser.

@return [Array]


def result : CLTK::Type #

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