CharParsers Module
Defines parsers for characters and strings. These parsers are more optimized for working with strings than the general parsers in `XParsec.Parsers`.
Nested modules
Modules | Description |
Functions and values
Function or value | Description |
Full Usage:
anyChar reader
Parameters:
Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<char, char, 'State>
|
|
Full Usage:
anyOf chars
Parameters:
char seq
Returns: Reader<char, 'a, 'b, 'c> -> ParseResult<char, char, 'a>
|
|
Full Usage:
asciiLetter reader
Parameters:
Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<char, char, 'State>
|
|
Full Usage:
charReturn c result reader
Parameters:
char
result : 'a
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'a, char, 'State>
|
|
Full Usage:
digit reader
Parameters:
Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<char, char, 'State>
|
|
Full Usage:
isAsciiLetter c
Parameters:
char
Returns: bool
|
|
Full Usage:
isDigit c
Parameters:
char
Returns: bool
|
|
Full Usage:
isLetter c
Parameters:
char
Returns: bool
|
|
Full Usage:
many1Chars p1 reader
Parameters:
Parser<char, char, 'State, 'Input, 'InputSlice>
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<string, char, 'State>
|
|
Full Usage:
many1Chars2 p1 p reader
Parameters:
Parser<char, char, 'State, 'Input, 'InputSlice>
p : Parser<char, char, 'State, 'Input, 'InputSlice>
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<string, char, 'State>
|
|
Full Usage:
manyChars p1 reader
Parameters:
Parser<char, char, 'State, 'Input, 'InputSlice>
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<string, char, 'State>
|
|
Full Usage:
manyCharsTill p pEnd reader
Parameters:
Parser<'A, char, 'State, 'Input, 'InputSlice>
pEnd : Parser<'B, char, 'State, 'Input, 'InputSlice>
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<(string * 'B), char, 'State>
|
|
Full Usage:
newline reader
Parameters:
Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<char, char, 'State>
|
|
Full Usage:
newlineReturn result reader
Parameters:
'a
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'a, char, 'State>
|
|
Full Usage:
pbigint reader
Parameters:
Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<BigInteger, char, 'State>
|
The parser fails - in place, if not at least one digit (including the 0 in the format specifiers 0x etc.) can be parsed, - if no digit comes after the format specifier, - if the value represented by the input string is greater than System.Int64.MaxValue or less than System.Int64.MinValue.
|
Full Usage:
pchar c reader
Parameters:
char
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<char, char, 'State>
|
|
Full Usage:
pfloat reader
Parameters:
Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<float, char, 'State>
|
|
Full Usage:
pint16 reader
Parameters:
Reader<char, 'a, 'b, 'c>
Returns: ParseResult<int16, char, 'a>
|
The parser fails - in place, if not at least one digit (including the 0 in the format specifiers 0x etc.) can be parsed, - if no digit comes after the format specifier, - if the value represented by the input string is greater than Int16.MaxValue or less than Int16.MinValue.
|
Full Usage:
pint32 reader
Parameters:
Reader<char, 'a, 'b, 'c>
Returns: ParseResult<int, char, 'a>
|
The parser fails - in place, if not at least one digit (including the 0 in the format specifiers 0x etc.) can be parsed, - if no digit comes after the format specifier, - if the value represented by the input string is greater than Int32.MaxValue or less than Int32.MinValue.
|
Full Usage:
pint64 reader
Parameters:
Reader<char, 'a, 'b, 'c>
Returns: ParseResult<int64, char, 'a>
|
The parser fails - in place, if not at least one digit (including the 0 in the format specifiers 0x etc.) can be parsed, - if no digit comes after the format specifier, - if the value represented by the input string is greater than Int64.MaxValue or less than Int64.MinValue.
|
Full Usage:
pint8 reader
Parameters:
Reader<char, 'a, 'b, 'c>
Returns: ParseResult<int8, char, 'a>
|
The parser fails - in place, if not at least one digit (including the 0 in the format specifiers 0x etc.) can be parsed, - if no digit comes after the format specifier, - if the value represented by the input string is greater than SByte.MaxValue or less than SByte.MinValue.
|
Full Usage:
pstring s reader
Parameters:
string
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<string, char, 'State>
|
|
Full Usage:
puint16 reader
Parameters:
Reader<char, 'a, 'b, 'c>
Returns: ParseResult<uint16, char, 'a>
|
The parser fails - in place, if not at least one digit (including the 0 in the format specifiers 0x etc.) can be parsed, - if no digit comes after the format specifier, - if the value represented by the input string is greater than System.Int64.MaxValue or less than System.Int64.MinValue.
|
Full Usage:
puint32 reader
Parameters:
Reader<char, 'a, 'b, 'c>
Returns: ParseResult<uint32, char, 'a>
|
The parser fails - in place, if not at least one digit (including the 0 in the format specifiers 0x etc.) can be parsed, - if no digit comes after the format specifier, - if the value represented by the input string is greater than System.Int64.MaxValue or less than System.Int64.MinValue.
|
Full Usage:
puint64 reader
Parameters:
Reader<char, 'a, 'b, 'c>
Returns: ParseResult<uint64, char, 'a>
|
The parser fails - in place, if not at least one digit (including the 0 in the format specifiers 0x etc.) can be parsed, - if no digit comes after the format specifier, - if the value represented by the input string is greater than System.Int64.MaxValue or less than System.Int64.MinValue.
|
Full Usage:
puint8 reader
Parameters:
Reader<char, 'a, 'b, 'c>
Returns: ParseResult<uint8, char, 'a>
|
The parser fails - in place, if not at least one digit (including the 0 in the format specifiers 0x etc.) can be parsed, - if no digit comes after the format specifier, - if the value represented by the input string is greater than System.Int64.MaxValue or less than System.Int64.MinValue.
|
Full Usage:
skipAnyChar reader
Parameters:
Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, char, 'State>
|
|
Full Usage:
skipChar c reader
Parameters:
char
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, char, 'State>
|
|
Full Usage:
skipNewline reader
Parameters:
Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, char, 'State>
|
|
Full Usage:
spaces reader
Parameters:
Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, char, 'State>
|
|
Full Usage:
spaces1 reader
Parameters:
Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<unit, char, 'State>
|
|
Full Usage:
stringCIReturn s result reader
Parameters:
string
result : 'a
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'a, char, 'State>
|
|
Full Usage:
stringReturn s result reader
Parameters:
string
result : 'a
reader : Reader<char, 'State, 'Input, 'InputSlice>
Returns: ParseResult<'a, char, 'State>
|
|