sdpc.primitives

Common primitives used across this library

Members

Functions

discard_any
void discard_any(T i)

Utility function for discard any kind of input data

Structs

ParseResult
struct ParseResult(R, T = void, E = ulong)

Parse result

transform
struct transform(Parser, alias func)

Apply func to the data returned by the Parser

transform_err
struct transform_err(Parser, alias func)

Apply func to the error returned by the Parser

Templates

Enumerate
template Enumerate(T...)
Undocumented in source.
ParserReturnType
template ParserReturnType(R)

Get the return types of a parser

isParser
template isParser(T, E = char)
Undocumented in source.

Meta

Authors

Yuxuan Shui