antlr4-master 4.13.1
antlr4
org.antlr.v4.codegen.model
LL1OptionalBlock
Top
Description
Constructors
org.antlr.v4.codegen.model
public
Class LL1OptionalBlock
extends
LL1AltBlock
Class Inheritance
java.lang.Object
org.antlr.v4.codegen.model.OutputModelObject
org.antlr.v4.codegen.model.SrcOp
org.antlr.v4.codegen.model.RuleElement
org.antlr.v4.codegen.model.Choice
org.antlr.v4.codegen.model.LL1Choice
org.antlr.v4.codegen.model.LL1AltBlock
org.antlr.v4.codegen.model.LL1OptionalBlock
Imports
org.
antlr.
v4.
codegen.
OutputModelFactory
,
org.
antlr.
v4.
tool.
ast.
GrammarAST
,
java.
util.
List
An optional block is just an alternative block where the last alternative is epsilon. The analysis takes care of adding to the empty alternative. (A | B | C)?
Constructor Summary
Access
Constructor and Description
public
LL1OptionalBlock
(
OutputModelFactory
factory,
GrammarAST
blkAST,
List
<
CodeBlockForAlt
> alts
)
Constructor Detail
LL1OptionalBlock
back to summary
public
LL1OptionalBlock
(
OutputModelFactory
factory,
GrammarAST
blkAST,
List
<
CodeBlockForAlt
> alts
)