de.klosebrothers.specparser.gauge.parser.ContextStepsParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of specparser Show documentation
Show all versions of specparser Show documentation
This is a Library for parsing a Gauge Specification into a appropriate datastructure
package de.klosebrothers.specparser.gauge.parser;
import de.klosebrothers.specparser.gauge.datastructure.ContextSteps;
import org.commonmark.node.Node;
import static java.util.Collections.singletonList;
public class ContextStepsParser extends GaugeParser {
@Override
protected FromTo parse(Node node) {
ContextSteps steps = new ContextSteps();
FromTo fromTo = many(node, steps, new MaybeOneOf(stepParser, commentParser));
return new FromTo(fromTo.from, singletonList(steps));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy