Package | Description |
---|---|
leola.ast | |
leola.frontend.parsers |
Modifier and Type | Class and Description |
---|---|
class |
ArrayAccessExpr
Accounts for array access expressions:
|
class |
ArrayAccessSetExpr
Accounts for setting an array access expressions:
|
class |
ArrayDeclExpr
Array declaration expression.
|
class |
AssignmentExpr
Assignment statement
|
class |
BinaryAssignmentExpr
Binary Assignment expression
|
class |
BinaryExpr
A Binary expression.
|
class |
BooleanExpr |
class |
CaseExpr
Case Expression
|
class |
ChainedArrayAccessExpr |
class |
ChainedArrayAccessSetExpr |
class |
ChainedAssignmentExpr
Assignment statement
|
class |
ChainedBinaryAssignmentExpr
Assignment statement
|
class |
ChainedFuncInvocationExpr
A Function invocation that reads from the top of the stack.
|
class |
ChainedMemberAccessExpr |
class |
CompoundExpr
A statement composed of two statements
|
class |
DecoratorExpr
Decorator expression
|
class |
FuncDefExpr |
class |
FuncInvocationExpr
A Function invokation
|
class |
GenDefExpr |
class |
IntegerExpr
Number expression
|
class |
IsExpr
IS Expression
|
class |
LongExpr
Number expression
|
class |
MapDeclExpr |
class |
MemberAccessExpr |
class |
NamedParameterExpr
Named Parameter Expression
|
class |
NamespaceAccessExpr
Using a Namespace
|
class |
NewExpr
Instantiates a new Object
|
class |
NullExpr
Represents null
|
class |
OwnableExpr
A variable owned by a class.
|
class |
RealExpr
Number expression
|
class |
StringExpr |
class |
UnaryExpr
Unary operator
|
class |
VarExpr |
Modifier and Type | Method and Description |
---|---|
Expr |
ChainedMemberAccessExpr.getAccess() |
Expr |
WhileStmt.getCondition() |
Expr |
SwitchStmt.getCondition() |
Expr |
IfStmt.getCondition() |
Expr |
CaseExpr.getCondition() |
Expr |
ChainedArrayAccessSetExpr.getElementIndex() |
Expr |
ChainedArrayAccessExpr.getElementIndex() |
Expr |
ArrayAccessSetExpr.getElementIndex() |
Expr |
ArrayAccessExpr.getElementIndex() |
Expr[] |
ArrayDeclExpr.getElements() |
Expr |
CaseExpr.getElseExpr() |
Expr |
YieldStmt.getExpr() |
Expr |
UnaryExpr.getExpr() |
Expr |
ThrowStmt.getExpr() |
Expr |
ReturnStmt.getExpr() |
Expr |
ChainedAssignmentExpr.getExpr() |
Expr |
BinaryAssignmentExpr.getExpr() |
Expr |
AssignmentExpr.getExpr() |
Expr |
DecoratorExpr.getFollowingExpr() |
Expr |
BinaryExpr.getLeft() |
Expr |
IsExpr.getLhsExpr() |
Expr |
ChainedAssignmentExpr.getLhsExpr() |
Expr |
BinaryAssignmentExpr.getLhsExpr() |
Expr |
AssignmentExpr.getLhsExpr() |
Expr[] |
NewExpr.getParameters() |
Expr[] |
FuncInvocationExpr.getParameters() |
Expr[] |
DecoratorExpr.getParameters() |
Expr[] |
ChainedFuncInvocationExpr.getParameters() |
Expr[] |
ClassDeclStmt.getParentClassParams() |
Expr |
BinaryExpr.getRight() |
Expr |
VarDeclStmt.getValue() |
Expr |
NamedParameterExpr.getValueExpr() |
Modifier and Type | Method and Description |
---|---|
List<Pair<Expr,Expr>> |
MapDeclExpr.getElements() |
List<Pair<Expr,Expr>> |
MapDeclExpr.getElements() |
List<Pair<Expr,Expr>> |
CaseExpr.getWhenExprs() |
List<Pair<Expr,Expr>> |
CaseExpr.getWhenExprs() |
List<Pair<Expr,Stmt>> |
SwitchStmt.getWhenStmts() |
Modifier and Type | Method and Description |
---|---|
void |
ChainedAssignmentExpr.setLhsExpr(Expr lhsExpr) |
void |
BinaryAssignmentExpr.setLhsExpr(Expr lhsExpr) |
void |
AssignmentExpr.setLhsExpr(Expr lhsExpr) |
Constructor and Description |
---|
ArrayAccessExpr(String variableName,
Expr elementIndex) |
ArrayAccessExpr(String owner,
String variableName,
Expr elementIndex) |
ArrayAccessSetExpr(String variableName,
Expr elementIndex) |
ArrayAccessSetExpr(String owner,
String variableName,
Expr elementIndex) |
ArrayDeclExpr(Expr[] elements) |
AssignmentExpr(String varName,
Expr lhsExpr,
Expr expr) |
AssignmentExpr(String owner,
String varName,
Expr lhsExpr,
Expr expr) |
BinaryAssignmentExpr(String varName,
Expr lhsExpr,
Expr expr,
BinaryExpr.BinaryOp binaryOp) |
BinaryAssignmentExpr(String owner,
String varName,
Expr lhsExpr,
Expr expr,
BinaryExpr.BinaryOp binaryOp) |
BinaryExpr(Expr left,
Expr right,
BinaryExpr.BinaryOp op) |
CaseExpr(Expr condition,
List<Pair<Expr,Expr>> whenExprs) |
CaseExpr(Expr condition,
List<Pair<Expr,Expr>> whenExprs,
Expr elseExpr) |
ChainedArrayAccessExpr(Expr elementIndex) |
ChainedArrayAccessSetExpr(Expr elementIndex) |
ChainedAssignmentExpr(Expr lhsExpr,
Expr expr) |
ChainedBinaryAssignmentExpr(Expr lhsExpr,
Expr expr,
BinaryExpr.BinaryOp binaryOp) |
ChainedFuncInvocationExpr(Expr... parameters) |
ChainedMemberAccessExpr(String parentName,
Expr access) |
ClassDeclStmt(String className,
ParameterList classParams,
Stmt classBodyStmt,
String parentClassName,
Expr[] parentClassParams,
String[] interfaceNames) |
DecoratorExpr(String decoratorName,
Expr[] parameters,
Expr followingExpr) |
DecoratorExpr(String decoratorName,
Expr[] parameters,
Expr followingExpr) |
FuncInvocationExpr(String functionName,
Expr... parameters) |
FuncInvocationExpr(String owner,
String functionName,
Expr... parameters) |
IfStmt(Expr condition,
Stmt stmt) |
IfStmt(Expr condition,
Stmt stmt,
Stmt elseStmt) |
IsExpr(String owner,
Expr lhsExpr,
String className) |
NamedParameterExpr(String parameterName,
Expr valueExpr) |
NewExpr(String className,
Expr[] parameters) |
ReturnStmt(Expr expr) |
SwitchStmt(Expr condition,
List<Pair<Expr,Stmt>> whenStmts) |
SwitchStmt(Expr condition,
List<Pair<Expr,Stmt>> whenStmts,
Stmt elseStmt) |
ThrowStmt(Expr expr) |
UnaryExpr(Expr expr,
UnaryExpr.UnaryOp op) |
VarDeclStmt(String varName,
Expr value) |
WhileStmt(Expr condition,
Stmt stmt) |
YieldStmt(Expr expr) |
Constructor and Description |
---|
CaseExpr(Expr condition,
List<Pair<Expr,Expr>> whenExprs) |
CaseExpr(Expr condition,
List<Pair<Expr,Expr>> whenExprs) |
CaseExpr(Expr condition,
List<Pair<Expr,Expr>> whenExprs,
Expr elseExpr) |
CaseExpr(Expr condition,
List<Pair<Expr,Expr>> whenExprs,
Expr elseExpr) |
MapDeclExpr(List<Pair<Expr,Expr>> elements) |
MapDeclExpr(List<Pair<Expr,Expr>> elements) |
SwitchStmt(Expr condition,
List<Pair<Expr,Stmt>> whenStmts) |
SwitchStmt(Expr condition,
List<Pair<Expr,Stmt>> whenStmts,
Stmt elseStmt) |
Modifier and Type | Method and Description |
---|---|
static Expr[] |
ParserUtils.parseArgumentExpressions(StmtParser parser,
Token currentToken)
Parses the parameters to a function call or class instantiation.
|
static Expr[] |
ParserUtils.parseArrayDeclaration(StmtParser parser,
Token currentToken)
Parses an array declaration
|
Expr |
ExprParser.parseExpr(Token currToken)
Parses the next
Expr |
Modifier and Type | Method and Description |
---|---|
static List<Pair<Expr,Expr>> |
ParserUtils.parseMapParameters(StmtParser parser,
Token currentToken,
EnumSet<LeolaTokenType> commaDelimeter,
LeolaTokenType endToken)
Parses the body of a Map during a map declaration.
|
static List<Pair<Expr,Expr>> |
ParserUtils.parseMapParameters(StmtParser parser,
Token currentToken,
EnumSet<LeolaTokenType> commaDelimeter,
LeolaTokenType endToken)
Parses the body of a Map during a map declaration.
|
Constructor and Description |
---|
IsExprParser(Expr lhsExpr,
LeolaParser parser) |
Copyright © 2010–2015. All rights reserved.