Interface Cfg.Symbol<T>
- Type Parameters:
T- the terminal symbol value type
- All Superinterfaces:
Cfg.Annotatable<T>, Cfg.Element<T>
- All Known Implementing Classes:
Cfg.NonTerminal, Cfg.Terminal
public static sealed interface Cfg.Symbol<T>
extends Cfg.Element<T>
permits Cfg.NonTerminal<T>, Cfg.Terminal<T>
Represents the symbols the BNF grammar consists.
- Since:
- 7.1
- Version:
- 8.2
-
Method Summary
Methods inherited from interface Cfg.Annotatable
annotation
-
Method Details
-
name
-
at
Description copied from interface:Cfg.AnnotatableCreate a new copy of the CFG element, with the givenannotation.- Specified by:
atin interfaceCfg.Annotatable<T>- Parameters:
annotation- the annotation of the newly created element, may benull- Returns:
- a copy of the element with the given
annotation
-