| Package | Description |
|---|---|
| org.classdump.luna.parser |
Core classes of the Lua 5.3 parser.
|
| org.classdump.luna.parser.analysis |
Syntactic analysis of Lua programs.
|
| org.classdump.luna.parser.ast |
The abstract syntax tree (AST) representation of Lua programs.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
Parser.Expr() |
static Expr |
Exprs.paren(Expr expr) |
Expr |
Parser.PrefixExpr() |
Expr |
Parser.SimpleExpr() |
Expr |
Parser.VarExpr() |
| Modifier and Type | Method and Description |
|---|---|
org.classdump.luna.parser.SourceElement<List<Expr>> |
Parser.Args() |
List<Expr> |
Parser.ExprList() |
| Modifier and Type | Method and Description |
|---|---|
static AssignStatement |
Statements.assignStatement(SourceInfo src,
List<LValueExpr> vars,
List<Expr> exprs) |
static CallExpr.FunctionCallExpr |
Exprs.functionCall(SourceInfo src,
Expr fn,
List<Expr> args) |
static GenericForStatement |
Statements.genericForStatement(SourceInfo src,
List<Name> names,
List<Expr> exprs,
Block block) |
static LocalDeclStatement |
Statements.localDeclStatement(SourceInfo src,
List<Name> names,
List<Expr> initialisers) |
static CallExpr.MethodCallExpr |
Exprs.methodCall(SourceInfo src,
Expr target,
Name methodName,
List<Expr> args) |
static ReturnStatement |
Statements.returnStatement(SourceInfo src,
List<Expr> exprs) |
| Modifier and Type | Method and Description |
|---|---|
Expr |
LabelAnnotatorTransformer.transform(FunctionDefExpr e) |
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryOperationExpr |
class |
CallExpr |
static class |
CallExpr.FunctionCallExpr |
static class |
CallExpr.MethodCallExpr |
class |
FunctionDefExpr |
class |
IndexExpr |
class |
LiteralExpr |
class |
LValueExpr
An expression that refers to a memory location, i.e.
|
class |
MultiExpr |
class |
ParenExpr |
class |
TableConstructorExpr |
class |
UnaryOperationExpr |
class |
VarargsExpr |
class |
VarExpr |
| Modifier and Type | Field and Description |
|---|---|
protected List<Expr> |
CallExpr.args |
| Modifier and Type | Method and Description |
|---|---|
Expr |
VarargsExpr.accept(Transformer tf) |
Expr |
UnaryOperationExpr.accept(Transformer tf) |
Expr |
TableConstructorExpr.accept(Transformer tf) |
Expr |
ParenExpr.accept(Transformer tf) |
Expr |
LiteralExpr.accept(Transformer tf) |
Expr |
FunctionDefExpr.accept(Transformer tf) |
abstract Expr |
Expr.accept(Transformer tf) |
Expr |
CallExpr.FunctionCallExpr.accept(Transformer tf) |
Expr |
CallExpr.MethodCallExpr.accept(Transformer tf) |
Expr |
BinaryOperationExpr.accept(Transformer tf) |
Expr |
UnaryOperationExpr.arg() |
Expr |
WhileStatement.condition() |
Expr |
RepeatUntilStatement.condition() |
Expr |
ConditionalBlock.condition() |
Expr |
CallExpr.FunctionCallExpr.fn() |
Expr |
NumericForStatement.init() |
Expr |
TableConstructorExpr.FieldInitialiser.key() |
Expr |
IndexExpr.key() |
Expr |
BinaryOperationExpr.left() |
Expr |
NumericForStatement.limit() |
Expr |
IndexExpr.object() |
Expr |
BinaryOperationExpr.right() |
Expr |
NumericForStatement.step() |
Expr |
CallExpr.MethodCallExpr.target() |
Expr |
Visitor.transform(BinaryOperationExpr e) |
Expr |
Transformer.transform(BinaryOperationExpr e) |
Expr |
Visitor.transform(CallExpr.FunctionCallExpr e) |
Expr |
Transformer.transform(CallExpr.FunctionCallExpr e) |
Expr |
Visitor.transform(CallExpr.MethodCallExpr e) |
Expr |
Transformer.transform(CallExpr.MethodCallExpr e) |
Expr |
Visitor.transform(FunctionDefExpr e) |
Expr |
Transformer.transform(FunctionDefExpr e) |
Expr |
Visitor.transform(LiteralExpr e) |
Expr |
Transformer.transform(LiteralExpr e) |
Expr |
Visitor.transform(ParenExpr e) |
Expr |
Transformer.transform(ParenExpr e) |
Expr |
Visitor.transform(TableConstructorExpr e) |
Expr |
Transformer.transform(TableConstructorExpr e) |
Expr |
Visitor.transform(UnaryOperationExpr e) |
Expr |
Transformer.transform(UnaryOperationExpr e) |
Expr |
Visitor.transform(VarargsExpr e) |
Expr |
Transformer.transform(VarargsExpr e) |
Expr |
TableConstructorExpr.FieldInitialiser.value() |
| Modifier and Type | Method and Description |
|---|---|
List<Expr> |
CallExpr.args() |
List<Expr> |
ReturnStatement.exprs() |
List<Expr> |
GenericForStatement.exprs() |
List<Expr> |
AssignStatement.exprs() |
List<Expr> |
LocalDeclStatement.initialisers() |
protected List<Expr> |
Transformer.transformExprList(List<Expr> exprs) |
| Modifier and Type | Method and Description |
|---|---|
UnaryOperationExpr |
UnaryOperationExpr.update(Expr arg) |
WhileStatement |
WhileStatement.update(Expr condition,
Block block) |
RepeatUntilStatement |
RepeatUntilStatement.update(Expr condition,
Block block) |
ConditionalBlock |
ConditionalBlock.update(Expr condition,
Block block) |
TableConstructorExpr.FieldInitialiser |
TableConstructorExpr.FieldInitialiser.update(Expr keyExpr,
Expr valueExpr) |
IndexExpr |
IndexExpr.update(Expr object,
Expr key) |
BinaryOperationExpr |
BinaryOperationExpr.update(Expr left,
Expr right) |
CallExpr.FunctionCallExpr |
CallExpr.FunctionCallExpr.update(Expr fn,
List<Expr> args) |
CallExpr.MethodCallExpr |
CallExpr.MethodCallExpr.update(Expr target,
Name methodName,
List<Expr> args) |
NumericForStatement |
NumericForStatement.update(Name name,
Expr init,
Expr limit,
Expr step,
Block block) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Expr> |
Transformer.transformExprList(List<Expr> exprs) |
CallExpr.FunctionCallExpr |
CallExpr.FunctionCallExpr.update(Expr fn,
List<Expr> args) |
CallExpr.MethodCallExpr |
CallExpr.MethodCallExpr.update(Expr target,
Name methodName,
List<Expr> args) |
ReturnStatement |
ReturnStatement.update(List<Expr> exprs) |
AssignStatement |
AssignStatement.update(List<LValueExpr> vars,
List<Expr> exprs) |
LocalDeclStatement |
LocalDeclStatement.update(List<Name> names,
List<Expr> initialisers) |
GenericForStatement |
GenericForStatement.update(List<Name> names,
List<Expr> exprs,
Block block) |
| Constructor and Description |
|---|
BinaryOperationExpr(Attributes attr,
Operator.Binary op,
Expr left,
Expr right) |
ConditionalBlock(Expr condition,
Block block) |
FieldInitialiser(Expr keyExpr,
Expr valueExpr) |
FunctionCallExpr(Attributes attr,
Expr fn,
List<Expr> args) |
IndexExpr(Attributes attr,
Expr object,
Expr key) |
MethodCallExpr(Attributes attr,
Expr target,
Name methodName,
List<Expr> args) |
NumericForStatement(Attributes attr,
Name name,
Expr init,
Expr limit,
Expr step,
Block block) |
RepeatUntilStatement(Attributes attr,
Expr condition,
Block block) |
UnaryOperationExpr(Attributes attr,
Operator.Unary op,
Expr arg) |
WhileStatement(Attributes attr,
Expr condition,
Block block) |
| Constructor and Description |
|---|
AssignStatement(Attributes attr,
List<LValueExpr> vars,
List<Expr> exprs) |
CallExpr(Attributes attr,
List<Expr> args) |
FunctionCallExpr(Attributes attr,
Expr fn,
List<Expr> args) |
GenericForStatement(Attributes attr,
List<Name> names,
List<Expr> exprs,
Block block) |
LocalDeclStatement(Attributes attr,
List<Name> names,
List<Expr> initialisers) |
MethodCallExpr(Attributes attr,
Expr target,
Name methodName,
List<Expr> args) |
ReturnStatement(Attributes attr,
List<Expr> exprs) |
Copyright © 2016–2017. All rights reserved.