All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.klosebrothers.specparser.gauge.parser.ContextStepsParser Maven / Gradle / Ivy

Go to download

This is a Library for parsing a Gauge Specification into a appropriate datastructure

There is a newer version: 1.2
Show newest version
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