org.unlaxer.tinyexpression.parser.MethodChoiceParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tinyExpression Show documentation
Show all versions of tinyExpression Show documentation
TinyExpression implemented with Unlaxer
The newest version!
package org.unlaxer.tinyexpression.parser;
import org.unlaxer.parser.Parser;
import org.unlaxer.parser.Parsers;
import org.unlaxer.parser.combinator.LazyChoice;
public class MethodChoiceParser extends LazyChoice{
@Override
public org.unlaxer.parser.Parsers getLazyParsers() {
return new Parsers(
Parser.get(NumberMethodParser.class),
Parser.get(StringMethodParser.class),
Parser.get(BooleanMethodParser.class)
);
}
// @TokenExtractor(timings = Timing.CreateOperatorOperandTree)
// public List extractMethods(Token thisParserParsed) {
//
// checkTokenParsedByThisParser(thisParserParsed);
// Token choiced = ChoiceInterface.choiced(thisParserParsed);
// }
}