Reader<'T, 'State, 'Input> Type
A cursor that tracks the current position in the input and the user state. It is used by the parser to read from the input and manage state.
Constructors
| Constructor | Description |
Full Usage:
Reader(input, state, index)
Parameters:
'Input
state : 'State
index : int
Returns: Reader<'T, 'State, 'Input>
|
|
Instance members
| Instance member | Description |
Full Usage:
this.AtEnd
Returns: bool
|
|
|
|
Full Usage:
this.Index
|
|
Full Usage:
this.Input
Returns: 'Input
|
|
Full Usage:
this.Length
Returns: int
|
|
Full Usage:
this.Peek
Returns: 'T voption
|
|
|
|
Full Usage:
this.Position
|
|
Full Usage:
this.Skip
|
|
Full Usage:
this.SkipN
Parameters:
int
|
|
Full Usage:
this.Slice
Parameters:
int
newLength : int
newState : 'a
Returns: Reader<'T, 'a, 'Input>
|
See the two-arg
|
|
Slicing is the standard way to run a sub-parser over a bounded region with
a fresh (and possibly differently-typed) state. The child reader has its
own
|
Full Usage:
this.State
|
|
Full Usage:
this.TryRead
Returns: 'T voption
|
|