struct Parsem::ParseError(Token)

Overview

Description of why a parser failed.

Defined in:

parser.cr

Instance Method Summary

Instance Method Detail

def actual : FailParser | EndOfInput | Token | Array(Token) #

Description of the input actually encountered.

Token is a single invalid token. Array(Token) is a sequence of tokens that, taken together, are invalid. Other cases are explained in their respective types' docs.


[View source]
def expected : Nil | EndOfInput | OneOf(Token) | NoneOf(Token) #

Description of the input that was expected by the parser.

nil means unknown. Other cases are explained in their respective types' docs.


[View source]
def to_s(io) #

[View source]