Package | Description |
---|---|
org.spf4j.zel.vm.gen |
Modifier and Type | Method and Description |
---|---|
ParseException |
ZCompiler.generateParseException()
Generate ParseException.
|
Modifier and Type | Method and Description |
---|---|
void |
ZCompiler.assignableExpression(ParsingContext context) |
void |
ZCompiler.assignement(ParsingContext context) |
void |
ZCompiler.compare(ParsingContext context)
Commparison operatiors: < > <= >= == !=
|
static void |
ZCompiler.compile(String source,
InputStream is,
Charset charset,
ParsingContext context)
Compile a ZEL expression from Stream.
|
static void |
ZCompiler.compile(String source,
String xpr,
ParsingContext context)
Compile a ZEL expression from String.
|
void |
ZCompiler.constant(ParsingContext context) |
void |
ZCompiler.element(ParsingContext context,
boolean left) |
void |
ZCompiler.exponent(ParsingContext context)
the exponent operator: ^
|
void |
ZCompiler.expression(ParsingContext context) |
void |
ZCompiler.forStmt(ParsingContext context)
The ZEL for statement, (similar with for from GO):
for i = 0, result = 0; i < breakup; i = i + 1 {
result = result + part[i]
};
|
void |
ZCompiler.ifStmt(ParsingContext context)
The IF statment.
|
void |
ZCompiler.logical(ParsingContext context)
Logical operators: AND OR XOR
|
void |
ZCompiler.mainprogram(ParsingContext context) |
void |
ZCompiler.operations(ParsingContext context)
The ZEL operations:
Assignements: x, y, z = {1, 2, 3}; f(x) = 4;
Increment: x++
Decrement: x--
Swap: x <-> y
|
int |
ZCompiler.params(ParsingContext context) |
void |
ZCompiler.program(ParsingContext context) |
ParsingContext |
ZCompiler.programBlock(ParsingContext context)
A zel program block:
{
.....
|
void |
ZCompiler.programBlockStatic(ParsingContext context) |
void |
ZCompiler.statement(ParsingContext context) |
void |
ZCompiler.sum(ParsingContext context)
+ - operators.
|
void |
ZCompiler.swap(ParsingContext context) |
void |
ZCompiler.sysFunction(ParsingContext context) |
void |
ZCompiler.term(ParsingContext context)
* / % operators
|
void |
ZCompiler.ternary(ParsingContext context)
The ternary operator:
a < 0 ? 1 : 2
|
void |
ZCompiler.unary(ParsingContext context,
boolean left) |
void |
ZCompiler.unaryPost(ParsingContext context)
Async invocation operator: &
|
void |
ZCompiler.zreturn(ParsingContext context) |
Copyright © 2018 SPF4J. All rights reserved.