From b50c7e99603e9f85d82d700d62c16c4fcef88715 Mon Sep 17 00:00:00 2001 From: Geno <48206120+gabrielegenovese@users.noreply.github.com> Date: Thu, 11 Jul 2024 12:57:56 +0200 Subject: Code generation (#20) Co-authored-by: geno Co-authored-by: Santo Cariotti --- src/ast/nodes/AugassignNode.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ast/nodes/AugassignNode.java') 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 checkSemantics(SymbolTable ST, int _nesting) { + public ArrayList 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 ""; } -- cgit v1.2.3-18-g5258