summaryrefslogtreecommitdiff
path: root/src/ast/nodes/ParamdefNode.java
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-06-25 11:33:41 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-06-25 11:33:41 +0200
commit6bdf1fc6c1b7afe18ffcae05f8fb11eca0f51258 (patch)
tree2cfbae97d45388bac38defc9907c77e7b275b207 /src/ast/nodes/ParamdefNode.java
parent54b2c77e6875c1abb3d73fdfd0de924e75633087 (diff)
wip
Diffstat (limited to 'src/ast/nodes/ParamdefNode.java')
-rw-r--r--src/ast/nodes/ParamdefNode.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ast/nodes/ParamdefNode.java b/src/ast/nodes/ParamdefNode.java
index 481282e..3ad82dd 100644
--- a/src/ast/nodes/ParamdefNode.java
+++ b/src/ast/nodes/ParamdefNode.java
@@ -11,6 +11,13 @@ public class ParamdefNode extends AtomNode {
super(val);
}
+ @Override
+ public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
+ ST.insert(this.getId(), this.typeCheck(), _nesting, "");
+
+ return new ArrayList<SemanticError>();
+ }
+
// FIXME: it should returns the param' type
@Override
public Type typeCheck() {