Preparing search index...
The search index is not available
@spissvinkel/dsl-parser - v0.1.3
@spissvinkel/dsl-parser
parser
TryMapParser
Class TryMapParser<S, T, U>
Type Parameters
S
T
U
Hierarchy (
view full
)
DecoratorParser
<
S
,
T
,
U
>
TryMapParser
Index
Constructors
constructor
Properties
p
f
Methods
parse
All
flat
Map
map
try
Map
recover
try
Recover
then
then
Skip
skip
Then
or
or
Either
opt
seq
parse
Constructors
constructor
new
Try
Map
Parser
<
S
,
T
,
U
>
(
p
,
f
)
:
TryMapParser
<
S
,
T
,
U
>
Type Parameters
S
T
U
Parameters
p
:
Parser
<
S
,
T
>
f
:
(
(
t
)
=>
Result
<
S
,
U
>
)
(
t
)
:
Result
<
S
,
U
>
Parameters
t
:
T
Returns
Result
<
S
,
U
>
Returns
TryMapParser
<
S
,
T
,
U
>
Properties
Protected
Readonly
p
p
:
Parser
<
S
,
T
>
Private
Readonly
f
f
:
(
(
t
)
=>
Result
<
S
,
U
>
)
Type declaration
(
t
)
:
Result
<
S
,
U
>
Parameters
t
:
T
Returns
Result
<
S
,
U
>
Methods
parse
All
parse
All
(
input
)
:
Result
<
S
,
U
>
Parameters
input
:
Input
<
S
>
Returns
Result
<
S
,
U
>
flat
Map
flat
Map
<
U
>
(
f
)
:
Parser
<
S
,
U
>
Type Parameters
U
Parameters
f
:
(
(
t
)
=>
Parser
<
S
,
U
>
)
(
t
)
:
Parser
<
S
,
U
>
Parameters
t
:
U
Returns
Parser
<
S
,
U
>
Returns
Parser
<
S
,
U
>
map
map
<
U
>
(
f
)
:
Parser
<
S
,
U
>
Type Parameters
U
Parameters
f
:
(
(
t
)
=>
U
)
(
t
)
:
U
Parameters
t
:
U
Returns
U
Returns
Parser
<
S
,
U
>
try
Map
try
Map
<
U
>
(
f
)
:
Parser
<
S
,
U
>
Type Parameters
U
Parameters
f
:
(
(
t
)
=>
Result
<
S
,
U
>
)
(
t
)
:
Result
<
S
,
U
>
Parameters
t
:
U
Returns
Result
<
S
,
U
>
Returns
Parser
<
S
,
U
>
recover
recover
<
U
>
(
f
)
:
Parser
<
S
,
U
>
Type Parameters
U
Parameters
f
:
(
(
errorMessage
)
=>
U
)
(
errorMessage
)
:
U
Parameters
errorMessage
:
string
Returns
U
Returns
Parser
<
S
,
U
>
try
Recover
try
Recover
<
U
>
(
f
)
:
Parser
<
S
,
U
>
Type Parameters
U
Parameters
f
:
(
(
errorMessage
)
=>
Result
<
S
,
U
>
)
(
errorMessage
)
:
Result
<
S
,
U
>
Parameters
errorMessage
:
string
Returns
Result
<
S
,
U
>
Returns
Parser
<
S
,
U
>
then
then
<
U
>
(
q
)
:
Parser
<
S
,
Pair
<
U
,
U
>
>
Type Parameters
U
Parameters
q
:
Parser
<
S
,
U
>
Returns
Parser
<
S
,
Pair
<
U
,
U
>
>
then
Skip
then
Skip
<
U
>
(
q
)
:
Parser
<
S
,
U
>
Type Parameters
U
Parameters
q
:
Parser
<
S
,
U
>
Returns
Parser
<
S
,
U
>
skip
Then
skip
Then
<
U
>
(
q
)
:
Parser
<
S
,
U
>
Type Parameters
U
Parameters
q
:
Parser
<
S
,
U
>
Returns
Parser
<
S
,
U
>
or
or
(
q
)
:
Parser
<
S
,
U
>
Parameters
q
:
Parser
<
S
,
U
>
Returns
Parser
<
S
,
U
>
or
Either
or
Either
<
U
>
(
q
)
:
Parser
<
S
,
Either
<
U
,
U
>
>
Type Parameters
U
Parameters
q
:
Parser
<
S
,
U
>
Returns
Parser
<
S
,
Either
<
U
,
U
>
>
opt
opt
(
)
:
Parser
<
S
,
Maybe
<
U
>
>
Returns
Parser
<
S
,
Maybe
<
U
>
>
seq
seq
(
)
:
Parser
<
S
,
U
[]
>
Returns
Parser
<
S
,
U
[]
>
parse
parse
(
input
)
:
Result
<
S
,
U
>
Parameters
input
:
Input
<
S
>
Returns
Result
<
S
,
U
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
p
f
parse
All
flat
Map
map
try
Map
recover
try
Recover
then
then
Skip
skip
Then
or
or
Either
opt
seq
parse
@spissvinkel/dsl-parser - v0.1.3
calculator
either
index
input
maybe
pair
parser
result
string-parser
thunk
Generated using
TypeDoc