TOC Toolkit API - v0.1.0
Preparing search index...
toc-toolkit
GrammarInput
Interface GrammarInput<V, T>
A context-free rule has one declared variable on its left side.
interface
GrammarInput
<
V
extends
NonEmptyNames
,
T
extends
readonly
string
[]
>
{
variables
:
V
;
terminals
:
T
;
start
:
NoInfer
<
V
[
number
]
>
;
productions
:
readonly
{
lhs
:
NoInfer
<
V
[
number
]
>
;
rhs
:
readonly
GrammarInputSymbol
<
NoInfer
<
V
[
number
]
>
,
NoInfer
<
T
[
number
]
>
>
[]
;
}
[]
;
}
Type Parameters
V
extends
NonEmptyNames
T
extends
readonly
string
[]
Index
Properties
variables
terminals
start
productions
Properties
Readonly
variables
variables
:
V
Readonly
terminals
terminals
:
T
Readonly
start
start
:
NoInfer
<
V
[
number
]
>
Readonly
productions
productions
:
readonly
{
lhs
:
NoInfer
<
V
[
number
]
>
;
rhs
:
readonly
GrammarInputSymbol
<
NoInfer
<
V
[
number
]
>
,
NoInfer
<
T
[
number
]
>
>
[]
;
}
[]
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
variables
terminals
start
productions
TOC Toolkit API - v0.1.0
Loading...
A context-free rule has one declared variable on its left side.