diff options
author | geno <gabriele.genovese2@studio.unibo.it> | 2024-06-26 14:53:05 +0200 |
---|---|---|
committer | geno <gabriele.genovese2@studio.unibo.it> | 2024-06-26 14:53:05 +0200 |
commit | 06671f5aed68753435a762bc3be43e83094156d1 (patch) | |
tree | 56f251596cf57f6f13a7921e7dad6e795989329d /src/ast/nodes/AssignmentNode.java | |
parent | e09358f3648445bbf9747f40497af6221d933a99 (diff) |
exercise 1 completed
1.b now works
1.c implened error for "function takes N positional arguments but M were given"
Diffstat (limited to 'src/ast/nodes/AssignmentNode.java')
-rw-r--r-- | src/ast/nodes/AssignmentNode.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast/nodes/AssignmentNode.java b/src/ast/nodes/AssignmentNode.java index b0310b5..3d597ef 100644 --- a/src/ast/nodes/AssignmentNode.java +++ b/src/ast/nodes/AssignmentNode.java @@ -1,15 +1,15 @@ package ast.nodes; +import ast.types.*; import java.util.ArrayList; - import semanticanalysis.SemanticError; import semanticanalysis.SymbolTable; -import ast.types.*; /** * Node for the `assignment` statement of the grammar. */ public class AssignmentNode implements Node { + private ExprNode lhr; private Node assign; private ExprNode rhr; |