Package nlScript.ebnf
Class Rule
java.lang.Object
nlScript.ebnf.Rule
- All Implemented Interfaces:
RepresentsSymbol
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Symbol[]protected String[]protected final NonTerminalprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EBNFProductionaddProduction(BNF grammar, Rule rule, NonTerminal left, Symbol... right) abstract voidSymbol[]getNameForChild(int idx) onSuccessfulParsed(ParseListener listener) setAutocompleter(Autocompleter autocompleter) setEvaluator(Evaluator evaluator) voidsetParsedChildNames(String... parsedChildNames) withName()
-
Field Details
-
type
-
tgt
-
children
-
parsedChildNames
-
-
Constructor Details
-
Rule
-
-
Method Details
-
withName
-
withName
-
getTarget
-
getRepresentedSymbol
- Specified by:
getRepresentedSymbolin interfaceRepresentsSymbol
-
getChildren
-
getEvaluator
-
setEvaluator
-
getAutocompleter
-
setAutocompleter
-
onSuccessfulParsed
-
getOnSuccessfulParsed
-
addProduction
public static EBNFProduction addProduction(BNF grammar, Rule rule, NonTerminal left, Symbol... right) -
getNameForChild
-
setParsedChildNames
-
createBNF
-