struct Parsem::ParseError(Token)
- Parsem::ParseError(Token)
- Struct
- Value
- Object
Overview
Description of why a parser failed.
Defined in:
parser.crInstance Method Summary
-
#actual : FailParser | EndOfInput | Token | Array(Token)
Description of the input actually encountered.
-
#expected : Nil | EndOfInput | OneOf(Token) | NoneOf(Token)
Description of the input that was expected by the parser.
- #to_s(io)
Instance Method Detail
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.
Description of the input that was expected by the parser.
nil
means unknown.
Other cases are explained in their respective types' docs.