Preparing search index...
The search index is not available
@spissvinkel/dsl-parser - v0.1.3
@spissvinkel/dsl-parser
parser
TerminalParser
Class TerminalParser<S, T>
Abstract
Type Parameters
S
T
Hierarchy (
view full
)
Parser
<
S
,
T
>
TerminalParser
SucceedParser
FailParser
LitParser
ReParser
Index
Constructors
constructor
Methods
parse
parse
All
flat
Map
map
try
Map
recover
try
Recover
then
then
Skip
skip
Then
or
or
Either
opt
seq
Constructors
constructor
new
Terminal
Parser
<
S
,
T
>
(
)
:
TerminalParser
<
S
,
T
>
Type Parameters
S
T
Returns
TerminalParser
<
S
,
T
>
Methods
Abstract
parse
parse
(
input
)
:
Result
<
S
,
T
>
Parameters
input
:
Input
<
S
>
Returns
Result
<
S
,
T
>
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
[]
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
parse
parse
All
flat
Map
map
try
Map
recover
try
Recover
then
then
Skip
skip
Then
or
or
Either
opt
seq
@spissvinkel/dsl-parser - v0.1.3
calculator
either
index
input
maybe
pair
parser
result
string-parser
thunk
Generated using
TypeDoc