TOC Toolkit API - v0.1.0
Preparing search index...
toc-toolkit/automata
<internal>
BuilderState
Class BuilderState
Shared ownership and index checks of the two dense builders.
Index
Constructors
constructor
Properties
alphabet
accepts
symbols
phase
start
budget
Methods
check
allocate
accept
begin
finish
edge
symbol
Position
Constructors
constructor
new
BuilderState
(
alphabet
:
readonly
AlphabetSymbol
[]
,
budget
:
Budget
,
)
:
BuilderState
Parameters
alphabet
:
readonly
AlphabetSymbol
[]
budget
:
Budget
Returns
BuilderState
Properties
Readonly
alphabet
alphabet
:
readonly
AlphabetSymbol
[]
Readonly
accepts
accepts
:
boolean
[]
= []
Readonly
symbols
symbols
:
ReadonlyMap
<
AlphabetSymbol
,
number
>
phase
phase
:
BuilderPhase
= BuilderPhase.Open
start
start
:
Maybe
<
StateIndex
>
Readonly
budget
budget
:
Budget
Methods
check
check
(
phase
:
BuilderPhase
)
:
void
Parameters
phase
:
BuilderPhase
Returns
void
allocate
allocate
(
phase
:
BuilderPhase
)
:
StateIndex
Parameters
phase
:
BuilderPhase
Returns
StateIndex
accept
accept
(
phase
:
BuilderPhase
,
state
:
StateIndex
)
:
void
Parameters
phase
:
BuilderPhase
state
:
StateIndex
Returns
void
begin
begin
(
state
:
StateIndex
)
:
void
Parameters
state
:
StateIndex
Returns
void
finish
finish
()
:
StateIndex
Returns
StateIndex
edge
edge
(
phase
:
BuilderPhase
,
from
:
StateIndex
,
to
:
StateIndex
)
:
void
Parameters
phase
:
BuilderPhase
from
:
StateIndex
to
:
StateIndex
Returns
void
symbol
Position
symbolPosition
(
symbol
:
AlphabetSymbol
)
:
number
Parameters
symbol
:
AlphabetSymbol
Returns
number
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
alphabet
accepts
symbols
phase
start
budget
Methods
check
allocate
accept
begin
finish
edge
symbol
Position
TOC Toolkit API - v0.1.0
Loading...
Shared ownership and index checks of the two dense builders.