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

jscl.text.CommaAndExpression Maven / Gradle / Ivy

package jscl.text;

import jscl.math.Generic;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class CommaAndExpression implements Parser {

    public static final Parser parser = new CommaAndExpression();

    private CommaAndExpression() {
    }

    public Generic parse(@NotNull Parameters p, @Nullable Generic previousSumElement) throws ParseException {
        int pos0 = p.getPosition().intValue();

        ParserUtils.skipWhitespaces(p);

        ParserUtils.tryToParse(p, pos0, ',');

        return ParserUtils.parseWithRollback(ExpressionParser.parser, pos0, previousSumElement, p);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy