Package nlScript.ebnf
Class Rule
java.lang.Object
nlScript.ebnf.Rule
- All Implemented Interfaces:
Generatable,RepresentsSymbol
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Named<?>[]protected String[]protected final ArrayList<EBNFProduction> protected final NonTerminalprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EBNFProductionaddProduction(BNF grammar, Rule rule, NonTerminal left, Symbol... right) abstract voidgetChildGenerator(String childName, EBNFCore ebnf, Symbol otherwise) getChildGeneratorHints(String childName) intgetChildIndexForName(String name) Named<?>[]abstract GeneratorgetParsedNameForChild(int idx) protected static Symbol[]getSymbols(Named<?>... named) booleanhasParsedName(String name) onSuccessfulParsed(ParseListener listener) setAutocompleter(Autocompleter autocompleter) voidsetChildGeneratorHints(String childName, GeneratorHints hints) setEvaluator(Evaluator evaluator) voidsetGenerator(Generator generator) voidsetGeneratorHints(GeneratorHints hints) voidsetParsedChildNames(String... parsedChildNames) withName()
-
Field Details
-
type
-
tgt
-
children
-
parsedChildNames
-
productions
-
-
Constructor Details
-
Rule
-
-
Method Details
-
withName
-
withName
-
getTarget
-
getRepresentedSymbol
- Specified by:
getRepresentedSymbolin interfaceRepresentsSymbol
-
getChildren
-
getEvaluator
-
setEvaluator
-
getAutocompleter
-
setAutocompleter
-
getChildIndexForName
-
onSuccessfulParsed
-
getOnSuccessfulParsed
-
addProduction
public static EBNFProduction addProduction(BNF grammar, Rule rule, NonTerminal left, Symbol... right) -
getParsedNameForChild
-
getSymbols
-
setParsedChildNames
-
createBNF
-
generate
- Specified by:
generatein interfaceGeneratable
-
setGenerator
-
setGeneratorHints
-
getGenerator
-
getGeneratorHints
-
getDefaultGenerator
-
setChildGeneratorHints
-
hasParsedName
-
getChildGenerator
-
getChildGeneratorHints
-