Package | Description |
---|---|
jfun.jaskell.ast |
Provides classes and interfaces for the abstract syntax tree of jaskell.
|
Modifier and Type | Method and Description |
---|---|
static Operator |
Operators.buildAnd(java.lang.String name)
Build the binary and operator.
|
static Operator |
Operators.buildApply(java.lang.String name)
Build the binary $ operator to change precedence.
|
static Operator |
Operators.buildAss(java.lang.String name)
Build the := operator.
|
static Operator |
Operators.buildAt(java.lang.String name)
Build the unary @ operator to get the value corresponding a key or index.
|
static Operator |
Operators.buildConcat(java.lang.String name)
Build the binary ++ operator to concatenate two lists.
|
static Operator |
Operators.buildCons(java.lang.String name)
Build the binary : operator to add an element to a list.
|
static Operator |
Operators.buildCount(java.lang.String name)
Build the unary # operator to get the size of a container or a tuple.
|
static Operator |
Operators.buildDeduce(java.lang.String name)
Build the => operator.
|
static Operator |
Operators.buildDiv(java.lang.String name)
Build the binary / operator.
|
static Operator |
Operators.buildEq(java.lang.String name)
Build the binary == operator.
|
static Operator |
Operators.buildGe(java.lang.String name)
Build the binary >= operator.
|
static Operator |
Operators.buildGt(java.lang.String name)
Build the binary > operator.
|
static Operator |
Operators.buildInverseCall(java.lang.String name)
Build the binary -> operator to allow function call
in the argument first order.
|
static Operator |
Operators.buildLcomp(java.lang.String name)
Build the binary << operator to compose two functions.
|
static Operator |
Operators.buildLe(java.lang.String name)
Build the binary <= operator.
|
static Operator |
Operators.buildLt(java.lang.String name)
Build the binary < operator.
|
static Operator |
Operators.buildMinus(java.lang.String name)
Build the binary - operator.
|
static Operator |
Operators.buildMod(java.lang.String name)
Build the binary % operator.
|
static Operator |
Operators.buildMul(java.lang.String name)
Build the binary * operator.
|
static Operator |
Operators.buildNe(java.lang.String name)
Build the binary != operator.
|
static Operator |
Operators.buildNegate(java.lang.String name,
java.lang.String alias)
Build the unary - operator.
|
static Operator |
Operators.buildNot(java.lang.String name)
Build the unary (!) operator.
|
static Operator |
Operators.buildOr(java.lang.String name)
Build the binary or operator.
|
static Operator |
Operators.buildPlus(java.lang.String name)
Build the binary + operator.
|
static Operator |
Operators.buildSeq(java.lang.String name)
Build the binary >> operator to specify sequencing.
|
Modifier and Type | Method and Description |
---|---|
static Expr |
Exprs.buildBinary(int from,
Location loc,
Expr e1,
Operator op,
Expr e2)
Build a binary operator call.
|
static Expr |
Exprs.buildOpExpr(int from,
Location loc,
Operator f)
Build an expression for an operator that is used as a function.
|
static Expr |
Exprs.buildUnary(int from,
Location loc,
Operator op,
Expr e)
Build a unary operator call.
|
java.lang.Object |
ExprVisitor.visitBinary(int from,
Location loc,
Expr e1,
Operator op,
Expr e2)
Visit a binary operator call.
|
java.lang.Object |
ExprVisitor.visitOpExpr(int from,
Location loc,
Operator op)
Visit an operator used as function.
|
java.lang.Object |
ExprVisitor.visitUnary(int from,
Location loc,
Operator op,
Expr e)
Visit a unary operator call.
|