Modifier and Type | Class and Description |
---|---|
class |
ASTBinaryExpr
Decaf binary operation with an operation tag and two child sub-expressions.
|
class |
ASTFunctionCall
Decaf function call that is intended to return a value at runtime.
|
class |
ASTLiteral
Decaf literal value.
|
class |
ASTLocation
Decaf location.
|
class |
ASTUnaryExpr
Unary operation with an operation tag and a child sub-expression.
|
Modifier and Type | Field and Description |
---|---|
ASTExpression |
ASTUnaryExpr.child |
ASTExpression |
ASTConditional.condition |
ASTExpression |
ASTWhileLoop.guard |
ASTExpression |
ASTLocation.index |
ASTExpression |
ASTBinaryExpr.leftChild |
ASTExpression |
ASTBinaryExpr.rightChild |
ASTExpression |
ASTAssignment.value |
ASTExpression |
ASTReturn.value |
Modifier and Type | Field and Description |
---|---|
List<ASTExpression> |
ASTVoidFunctionCall.arguments |
List<ASTExpression> |
ASTFunctionCall.arguments |
Modifier and Type | Method and Description |
---|---|
ASTExpression |
MyDecafParser.parseBaseExpr(Queue<Token> tokens) |
ASTExpression |
MyDecafParser.parseBinExpr(Queue<Token> tokens,
int level) |
ASTExpression |
MyDecafParser.parseExpression(Queue<Token> tokens) |
ASTExpression |
MyDecafParser.parseNegExpr(Queue<Token> tokens) |
ASTExpression |
MyDecafParser.parseNotExpr(Queue<Token> tokens) |
Modifier and Type | Method and Description |
---|---|
void |
MyDecafAnalysis.assertValidParameters(List<ASTNode.DataType> formalTypes,
List<ASTExpression> actualArgs,
SourceInfo src) |
int |
MyILOCGenerator.emitArgs(ASTNode dest,
List<ASTExpression> arguments) |
Constructor and Description |
---|
ASTAssignment(ASTLocation location,
ASTExpression value) |
ASTBinaryExpr(ASTBinaryExpr.BinOp operator,
ASTExpression leftChild,
ASTExpression rightChild) |
ASTConditional(ASTExpression condition,
ASTBlock ifBlock) |
ASTConditional(ASTExpression condition,
ASTBlock ifBlock,
ASTBlock elseBlock) |
ASTLocation(String name,
ASTExpression index) |
ASTReturn(ASTExpression value) |
ASTUnaryExpr(ASTUnaryExpr.UnaryOp operator,
ASTExpression child) |
ASTWhileLoop(ASTExpression guard,
ASTBlock body) |
Copyright © 2019. All rights reserved.