TOC Toolkit API - v0.1.0
Preparing search index...
toc-toolkit
grammar
Function grammar
grammar
<
const
V
extends
NonEmptyNames
,
const
T
extends
readonly
string
[]
>
(
input
:
GrammarInput
<
V
,
T
>
&
Disjoint
<
V
[
number
]
,
T
[
number
]
>
,
)
:
Result
<
Typed
<
ContextFreeGrammar
,
T
[
number
]
,
V
[
number
]
>
,
TocError
>
Builds a checked CFG without parsing or relabeling the caller's symbols.
Type Parameters
const
V
extends
NonEmptyNames
const
T
extends
readonly
string
[]
Parameters
input
:
GrammarInput
<
V
,
T
>
&
Disjoint
<
V
[
number
]
,
T
[
number
]
>
Returns
Result
<
Typed
<
ContextFreeGrammar
,
T
[
number
]
,
V
[
number
]
>
,
TocError
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
TOC Toolkit API - v0.1.0
Loading...
Builds a checked CFG without parsing or relabeling the caller's symbols.