Module io.jenetics.ext
Package io.jenetics.ext.grammar
package io.jenetics.ext.grammar
This package contains classes for doing Grammatical Evolution.
- Since:
- 7.1
- Version:
- 7.1
- See Also:
-
ClassDescriptionThis class contains methods for parsing and formatting context-free grammars in BNF format.Cfg<T>Represents a context-free grammar (CFG).Represents one expression (list of alternative symbols) a production rule consists of.Represents the non-terminal symbols of the grammar (
NT
).Cfg.Rule<T>Represents a production rule of the grammar (R
).Cfg.Symbol<T>Represents the symbols the BNF grammar consists.Cfg.Terminal<T>Represents a terminal symbols of the grammar (T
).Represents a mapping of a finite set of integers to symbol indexes.Standard implementation of a derivation-tree generator.Generator<T,R> Generator interface for generating sentences/derivation trees from a given grammar.This class defines factories for different CFG ↔ Chromosome mappings (encodings).Standard implementation of a sentence generator.Defines the expansion strategy used when generating the sentences.Functional interface for selecting aCfg.Symbol
by its index within a rule.