Preparing search index...
The search index is not available
@spissvinkel/dsl-parser - v0.1.3
@spissvinkel/dsl-parser
parser
FailParser
Class FailParser<S, T>
Type Parameters
S
T
Hierarchy (
view full
)
TerminalParser
<
S
,
T
>
FailParser
Index
Constructors
constructor
Properties
error
Message
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
Fail
Parser
<
S
,
T
>
(
errorMessage
)
:
FailParser
<
S
,
T
>
Type Parameters
S
T
Parameters
errorMessage
:
string
Returns
FailParser
<
S
,
T
>
Properties
Private
Readonly
error
Message
error
Message
:
string
Methods
parse
All
parse
All
(
input
)
:
Result
<
S
,
T
>
Parameters
input
:
Input
<
S
>
Returns
Result
<
S
,
T
>
flat
Map
flat
Map
<
U
>
(
f
)
:
Parser
<
S
,
U
>
Type Parameters
U
Parameters
f
:
(
(
t
)
=>
Parser
<
S
,
U
>
)
(
t
)
:
Parser
<
S
,
U
>
Parameters
t
:
T
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
:
T
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
:
T
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
<
T
,
U
>
>
Type Parameters
U
Parameters
q
:
Parser
<
S
,
U
>
Returns
Parser
<
S
,
Pair
<
T
,
U
>
>
then
Skip
then
Skip
<
U
>
(
q
)
:
Parser
<
S
,
T
>
Type Parameters
U
Parameters
q
:
Parser
<
S
,
U
>
Returns
Parser
<
S
,
T
>
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
,
T
>
Parameters
q
:
Parser
<
S
,
T
>
Returns
Parser
<
S
,
T
>
or
Either
or
Either
<
U
>
(
q
)
:
Parser
<
S
,
Either
<
T
,
U
>
>
Type Parameters
U
Parameters
q
:
Parser
<
S
,
U
>
Returns
Parser
<
S
,
Either
<
T
,
U
>
>
opt
opt
(
)
:
Parser
<
S
,
Maybe
<
T
>
>
Returns
Parser
<
S
,
Maybe
<
T
>
>
seq
seq
(
)
:
Parser
<
S
,
T
[]
>
Returns
Parser
<
S
,
T
[]
>
parse
parse
(
input
)
:
Result
<
S
,
T
>
Parameters
input
:
Input
<
S
>
Returns
Result
<
S
,
T
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
error
Message
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