org.unlaxer.tinyexpression.parser.VariableParser Maven / Gradle / Ivy
package org.unlaxer.tinyexpression.parser;
import java.util.List;
import org.unlaxer.Name;
import org.unlaxer.parser.Parser;
import org.unlaxer.parser.Parsers;
import org.unlaxer.parser.combinator.LazyChain;
import org.unlaxer.parser.combinator.OneOrMore;
import org.unlaxer.parser.posix.AlphabetNumericUnderScoreParser;
public class VariableParser extends LazyChain {
private static final long serialVersionUID = -8533685205048474333L;
public VariableParser() {
super();
}
public VariableParser(Name name) {
super(name);
}
List parsers;
@Override
public void initialize() {
parsers =
new Parsers(
Parser.get(DollarParser.class),
new OneOrMore(
Parser.get(AlphabetNumericUnderScoreParser.class)
)
);
}
@Override
public List getLazyParsers() {
return parsers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy