Combinators Module
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
(.>>) p1 p2 reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'A, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B |
|
Full Usage:
(.>>.) p1 p2 reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<('A * 'B), 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B |
|
Full Usage:
(>) p1 message reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
message : string
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: Result<ParseSuccess<'A>, ParseError<'T, 'State>>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
(?>) p1 message reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
message : string
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: Result<ParseSuccess<'A>, ParseError<'T, 'State>>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
(<|>%) p1 x reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
x : 'A
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: Result<ParseSuccess<'A>, ParseError<'T, 'State>>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
(<|>) p1 p2 reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'A, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: Result<ParseSuccess<'A>, ParseError<'T, 'State>>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
(>>%) p x reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
x : 'a
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'a, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'a |
|
Full Usage:
(>>.) p1 p2 reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'B, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B |
|
Full Usage:
p >>= binder
Parameters: Returns: Reader<'b, 'c, 'd, 'e> -> ParseResult<'f, 'b, 'c>
Modifiers: inline Type parameters: 'a, 'b, 'c, 'd, 'e, 'f |
|
Full Usage:
(|>>) p mapping reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
mapping : 'A -> 'B
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'B, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B |
|
Full Usage:
between pOpen pClose p reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pClose : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
p : Parser<'C, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'C, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B, 'C |
|
Full Usage:
bind p binder reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
binder : 'A -> Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'B, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B |
|
Full Usage:
chainl p pOp orElse reader
Parameters:
Parser<'a, 'b, 'c, 'd, 'e>
pOp : Parser<('a -> 'a -> 'a), 'b, 'c, 'd, 'e>
orElse : 'a
reader : Reader<'b, 'c, 'd, 'e>
Returns: Result<ParseSuccess<'a>, ParseError<'b, 'c>>
|
|
Full Usage:
chainl1 p pOp reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pOp : Parser<('A -> 'A -> 'A), 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'A, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
chainr p pOp orElse reader
Parameters:
Parser<'a, 'b, 'c, 'd, 'e>
pOp : Parser<('a -> 'a -> 'a), 'b, 'c, 'd, 'e>
orElse : 'a
reader : Reader<'b, 'c, 'd, 'e>
Returns: Result<ParseSuccess<'a>, ParseError<'b, 'c>>
|
|
Full Usage:
chainr1 p pOp reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pOp : Parser<('A -> 'A -> 'A), 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'A, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
|
|
Full Usage:
followedBy p1 reader
Parameters: Returns: ParseResult<unit, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
followedByL p1 message reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
message : string
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
lookAhead p1 reader
Parameters: Returns: Result<ParseSuccess<'A>, ParseError<'T, 'State>>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
|
|
|
|
Full Usage:
many1Items2 p1 p reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p : Parser<'A, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<ImmutableArray<'A>, 'T, 'State>
|
|
Full Usage:
many1Till p pEnd reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pEnd : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<(ImmutableArray<'A> * 'B), 'T, 'State>
|
|
Full Usage:
manyTill p pEnd reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pEnd : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<(ImmutableArray<'A> * 'B), 'T, 'State>
|
|
Full Usage:
notEmpty p1 reader
Parameters: Returns: ParseResult<'A, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
notFollowedBy p1 reader
Parameters: Returns: ParseResult<unit, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
notFollowedByL p1 message reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
message : string
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
opt p1 reader
Parameters: Returns: ParseResult<'A voption, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
optional p1 reader
Parameters: Returns: ParseResult<unit, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice |
|
Full Usage:
parray n p reader
Parameters:
int
p : Parser<'A, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<ImmutableArray<'A>, 'T, 'State>
|
|
|
|
Full Usage:
pipe2 p1 p2 f reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
f : 'A -> 'B -> 'C
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'C, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B, 'C |
|
Full Usage:
pipe3 p1 p2 p3 f reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
p3 : Parser<'C, 'T, 'State, 'Input, 'InputSlice>
f : 'A -> 'B -> 'C -> 'D
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'D, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B, 'C, 'D |
|
Full Usage:
pipe4 p1 p2 p3 p4 f
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
p3 : Parser<'C, 'T, 'State, 'Input, 'InputSlice>
p4 : Parser<'D, 'T, 'State, 'Input, 'InputSlice>
f : 'A -> 'B -> 'C -> 'D -> 'E
Returns: Reader<'T, 'State, 'Input, 'InputSlice> -> ParseResult<'E, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B, 'C, 'D, 'E |
|
Full Usage:
pipe5 p1 p2 p3 p4 p5 f
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
p3 : Parser<'C, 'T, 'State, 'Input, 'InputSlice>
p4 : Parser<'D, 'T, 'State, 'Input, 'InputSlice>
p5 : Parser<'E, 'T, 'State, 'Input, 'InputSlice>
f : 'A -> 'B -> 'C -> 'D -> 'E -> 'F
Returns: Reader<'T, 'State, 'Input, 'InputSlice> -> ParseResult<'F, 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B, 'C, 'D, 'E, 'F |
|
Full Usage:
sepBy p pSep reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pSep : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<(ImmutableArray<'A> * ImmutableArray<'B>), 'T, 'State>
|
|
Full Usage:
sepBy1 p pSep reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pSep : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<(ImmutableArray<'A> * ImmutableArray<'B>), 'T, 'State>
|
|
Full Usage:
sepEndBy p pSep reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pSep : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<(ImmutableArray<'A> * ImmutableArray<'B>), 'T, 'State>
|
|
Full Usage:
sepEndBy1 p pSep reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pSep : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<(ImmutableArray<'A> * ImmutableArray<'B>), 'T, 'State>
|
|
Full Usage:
skipArray n p reader
Parameters:
int
p : Parser<'A, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, 'T, 'State>
|
|
|
|
|
|
Full Usage:
skipMany1Till p pEnd reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pEnd : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, 'T, 'State>
|
|
Full Usage:
skipManyTill p pEnd reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pEnd : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, 'T, 'State>
|
|
Full Usage:
skipSepBy p pSep reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pSep : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, 'T, 'State>
|
|
Full Usage:
skipSepBy1 p pSep reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pSep : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, 'T, 'State>
|
|
Full Usage:
skipSepEndBy p pSep reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pSep : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, 'T, 'State>
|
|
Full Usage:
skipSepEndBy1 p pSep reader
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
pSep : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
reader : Reader<'T, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, 'T, 'State>
|
|
Full Usage:
tuple2 p1 p2
Parameters: Returns: Reader<'T, 'State, 'Input, 'InputSlice> -> ParseResult<('A * 'B), 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B |
|
Full Usage:
tuple3 p1 p2 p3
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
p3 : Parser<'C, 'T, 'State, 'Input, 'InputSlice>
Returns: Reader<'T, 'State, 'Input, 'InputSlice> -> ParseResult<('A * 'B * 'C), 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B, 'C |
|
Full Usage:
tuple4 p1 p2 p3 p4
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
p3 : Parser<'C, 'T, 'State, 'Input, 'InputSlice>
p4 : Parser<'D, 'T, 'State, 'Input, 'InputSlice>
Returns: Reader<'T, 'State, 'Input, 'InputSlice> -> ParseResult<('A * 'B * 'C * 'D), 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B, 'C, 'D |
|
Full Usage:
tuple5 p1 p2 p3 p4 p5
Parameters:
Parser<'A, 'T, 'State, 'Input, 'InputSlice>
p2 : Parser<'B, 'T, 'State, 'Input, 'InputSlice>
p3 : Parser<'C, 'T, 'State, 'Input, 'InputSlice>
p4 : Parser<'D, 'T, 'State, 'Input, 'InputSlice>
p5 : Parser<'E, 'T, 'State, 'Input, 'InputSlice>
Returns: Reader<'T, 'State, 'Input, 'InputSlice> -> ParseResult<('A * 'B * 'C * 'D * 'E), 'T, 'State>
Modifiers: inline Type parameters: 'A, 'T, 'State, 'Input, 'InputSlice, 'B, 'C, 'D, 'E |
|