/*
 * Java Genetic Algorithm Library (@__identifier__@).
 * Copyright (c) @__year__@ Franz Wilhelmstötter
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Author:
 *    Franz Wilhelmstötter (franz.wilhelmstoetter@gmail.com)
 */
package io.jenetics.incubator.grammar;

import java.util.List;

import io.jenetics.Genotype;
import io.jenetics.IntegerGene;
import io.jenetics.incubator.grammar.Cfg.Terminal;

public class StandardMapper implements Mapper<IntegerGene> {

	@Override
	public List<Terminal> map(final Genotype<IntegerGene> gt, final Cfg cfg) {
		return null;
	}

}

@@ -860,228 +860,846 @@
 eger
-Gene;%0Aimport io.jenetics.incubator.grammar.Cfg.Terminal;%0A%0Apublic class StandardMapper implements Mapper%3CIntegerGene%3E %7B%0A%0A%09@Override%0A%09public List%3CTerminal%3E map(final Genotype%3CIntegerGene%3E gt, final Cfg cfg) %7B%0A%09%09return null
+Chromosome;%0Aimport io.jenetics.IntegerGene;%0Aimport io.jenetics.engine.Codec;%0Aimport io.jenetics.incubator.grammar.Cfg.Terminal;%0Aimport io.jenetics.util.IntRange;%0A%0A/**%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmail.com%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A * @since !__version__!%0A * @version !__version__!%0A */%0Apublic class StandardMapper implements Mapper%3CIntegerGene%3E %7B%0A%0A%09@Override%0A%09public List%3CTerminal%3E map(final Genotype%3CIntegerGene%3E gt, final Cfg cfg) %7B%0A%09%09final var codons = Codons.ofIntegerGenes(gt.chromosome());%0A%09%09return Sentence.generate(cfg, codons);%0A%09%7D%0A%0A%0A%09public static Codec%3CList%3CTerminal%3E, IntegerGene%3E codec(%0A%09%09final Cfg cfg,%0A%09%09final IntRange domain,%0A%09%09final IntRange length%0A%09) %7B%0A%09%09return Codec.of(%0A%09%09%09Genotype.of(IntegerChromosome.of(domain, length)),%0A%09%09%09gt -%3E Sentence.generate(cfg, Codons.ofIntegerGenes(gt.chromosome()))%0A%09%09)
 ;%0A%09%7D

Implement 'Codec' factory for sentence (List<Terminal).