pry.traits

Members

Aliases

ParserStream
alias ParserStream(Parser) = Parameters!(Parser.parse)[0]

Extract stream type of a given parser.

ParserValue
alias ParserValue(Parser) = Parameters!(Parser.parse)[1]

Extract value type of a given Parser.

Classes

ParseFailure
class ParseFailure(S)

Generic parse failure exception.

Functions

parse
auto parse(S str, Parser parser)

Convenience wrapper for Parser interface - parse a string, throw on failure.

Structs

Nothing
struct Nothing

Parsers that have ParserValue of Nothing produce no value on parse.

Templates

ParseFailure
template ParseFailure(S)

ParseFailure!string is shortcut for ParseFailure!(SimpleStream!string).

Meta