Search
Preparing search index...
The search index is not available
@chevrotain/types
Options
All
Public
Public/Protected
All
Inherited
Menu
@chevrotain/types
Terminal
Class Terminal
The Grammar AST class representing a {@link Parser.CONSUME} call.
Hierarchy
Terminal
Implements
IProductionWithOccurrence
Index
Constructors
constructor
Properties
idx
label
terminal
Type
Methods
accept
Constructors
constructor
new
Terminal
(
options
:
{
idx
?:
number
;
label
?:
string
;
terminalType
:
TokenType
}
)
:
Terminal
Parameters
options:
{
idx
?:
number
;
label
?:
string
;
terminalType
:
TokenType
}
Optional
idx
?:
number
Optional
label
?:
string
terminal
Type
:
TokenType
Returns
Terminal
Properties
idx
idx
:
number
Optional
label
label
?:
string
terminal
Type
terminal
Type
:
TokenType
Methods
accept
accept
(
visitor
:
IGASTVisitor
)
:
void
Parameters
visitor:
IGASTVisitor
Returns
void
Exports
Terminal
constructor
idx
label
terminal
Type
accept
Generated using
TypeDoc
The Grammar AST class representing a {@link Parser.CONSUME} call.