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