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

org.unlaxer.tinyexpression.parser.MethodChoiceParser Maven / Gradle / Ivy

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);
//  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy