TOC Toolkit API - v0.1.0
Preparing search index...
toc-toolkit/grammars/rewriting/fixtures
grammarOf
Function grammarOf
grammarOf
(
names
:
readonly
string
[]
,
rows
:
readonly
(
readonly
[
string
,
readonly
string
[]
]
)
[]
,
terminals
?:
readonly
string
[]
,
)
:
Grammar
<
ContextFreeProduction
>
Builds a checked CFG; strings beginning with $ name variables, all other strings are terminals.
Parameters
names
:
readonly
string
[]
rows
:
readonly
(
readonly
[
string
,
readonly
string
[]
]
)
[]
terminals
:
readonly
string
[]
= ...
Returns
Grammar
<
ContextFreeProduction
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
TOC Toolkit API - v0.1.0
Loading...
Builds a checked CFG; strings beginning with $ name variables, all other strings are terminals.