本文整理汇总了Java中org.codehaus.jparsec.functors.Binary类的典型用法代码示例。如果您正苦于以下问题:Java Binary类的具体用法?Java Binary怎么用?Java Binary使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Binary类属于org.codehaus.jparsec.functors包,在下文中一共展示了Binary类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: binary
import org.codehaus.jparsec.functors.Binary; //导入依赖的package包/类
private static Parser<Binary<Expression>> binary(String name, Op op) {
return term(name).next(binaryExpression(op).binary());
}
示例2: binaryOptional
import org.codehaus.jparsec.functors.Binary; //导入依赖的package包/类
private static Parser<Binary<Expression>> binaryOptional(String name, Op op) {
return term(name).optional().next(binaryExpression(op).binary());
}
示例3: binary
import org.codehaus.jparsec.functors.Binary; //导入依赖的package包/类
static Parser<Binary<ExprNode>> binary (String operator, Parser<?> token)
{
return token.next(Mapper.<ExprNode> curry(OpNode.Binary.class, operator).binary());
}
示例4: ifElse
import org.codehaus.jparsec.functors.Binary; //导入依赖的package包/类
static <T extends ExprNode> Parser<Binary<ExprNode>> ifElse (Parser<T> e)
{
return Mapper.<ExprNode>curry(OpNode.Trinary.class, "if")
.infix(TagParsers.name("if"), e, TagParsers.name("else"))
.or(binary("if", TagParsers.name("if")));
}
示例5: qualified
import org.codehaus.jparsec.functors.Binary; //导入依赖的package包/类
static Parser<Unary<ExprNode>> qualified ()
{
return Mapper.<ExprNode>curry(OpNode.Binary.class, ".").postfix(term("."), NAME_PARSER);
}