summaryrefslogtreecommitdiff
path: root/src/ast/nodes/AugassignNode.java
diff options
context:
space:
mode:
authorGeno <48206120+gabrielegenovese@users.noreply.github.com>2024-07-11 12:57:56 +0200
committerGitHub <noreply@github.com>2024-07-11 12:57:56 +0200
commitb50c7e99603e9f85d82d700d62c16c4fcef88715 (patch)
tree5052206f06e0426a43599cb236652614db04d22e /src/ast/nodes/AugassignNode.java
parentf0692ff5f9e39cbd1c203e9d5abebf55a3d0f6fc (diff)
Code generation (#20)
Co-authored-by: geno <gabrigeno@gmail> Co-authored-by: Santo Cariotti <santo@dcariotti.me>
Diffstat (limited to 'src/ast/nodes/AugassignNode.java')
-rw-r--r--src/ast/nodes/AugassignNode.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ast/nodes/AugassignNode.java b/src/ast/nodes/AugassignNode.java
index aef60cc..906dcd7 100644
--- a/src/ast/nodes/AugassignNode.java
+++ b/src/ast/nodes/AugassignNode.java
@@ -20,19 +20,18 @@ public class AugassignNode implements Node {
}
@Override
- public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
+ public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting, FunctionType ft) {
return new ArrayList<>();
}
- // FIXME: use the right type
@Override
public Type typeCheck() {
return new VoidType();
}
- // TODO: add code generation for augassign node
@Override
public String codeGeneration() {
+ // We're just considering the `=` operation for this language.
return "";
}