Package | Description |
---|---|
jfun.jaskell |
Provides classes and interfaces for compiling and running jaskell code.
|
jfun.jaskell.ast |
Provides classes and interfaces for the abstract syntax tree of jaskell.
|
Modifier and Type | Method and Description |
---|---|
static FunDef[] |
Jaskell.parseLib(java.lang.Object module_id,
java.lang.CharSequence src)
Parses source code containing a list of function definitions
that can be mutually dependent.
|
static FunDef[] |
Jaskell.parseLib(java.lang.Object module_id,
java.lang.String module,
java.lang.CharSequence src)
Parses source code containing a list of function definitions
that can be mutually dependent.
|
static FunDef[] |
Jaskell.parseLib(java.lang.Object module_id,
java.lang.String module,
jfun.parsec.PositionMap pmap,
java.lang.CharSequence src)
Parses source code containing a list of function definitions
that can be mutually dependent.
|
Modifier and Type | Method and Description |
---|---|
static FunBinding[] |
Jaskell.compileLib(FunDef[] defs)
Compiles a list of function definitions as a library.
|
Modifier and Type | Method and Description |
---|---|
static Expr |
Exprs.buildExpr(int from,
Location loc,
Expr e,
FunDef[] where)
Build an expression with a list of function definitions
defined by "where".
|
static Expr |
Exprs.buildFieldUpdate(int from,
Location loc,
Expr e,
FunDef[] flds)
Build an expression for tuple field update.
|
static Expr |
Exprs.buildLet(int from,
Location loc,
FunDef[] defs)
Build an expression with a list of function definitions defined by "let".
|
static Expr |
Exprs.buildTuple(int from,
Location loc,
FunDef[] flds)
Build an expression for tuple definition.
|
java.lang.Object |
ExprVisitor.visitExpr(int from,
Location loc,
Expr e1,
FunDef[] where)
Visit an expression with a list of uncompiled function definitions.
|
java.lang.Object |
ExprVisitor.visitFieldUpdate(int from,
Location loc,
Expr t,
FunDef[] flds)
Visit an uncompiled tuple field update.
|
java.lang.Object |
ExprVisitor.visitLet(int from,
Location loc,
FunDef[] defs)
Visit an uncompiled let statement.
|
java.lang.Object |
ExprVisitor.visitTuple(int from,
Location loc,
FunDef[] flds)
Visit an uncompiled tuple definition.
|