summaryrefslogtreecommitdiff
path: root/src/semanticanalysis/STentry.java
diff options
context:
space:
mode:
authorL0P0P <grassoemanuele@live.com>2024-06-26 11:44:58 +0200
committerL0P0P <grassoemanuele@live.com>2024-06-26 11:44:58 +0200
commit9e6c17cb44bc165e315ec039a0e09183716d2037 (patch)
tree4a64fd37fa9b2483b88a5f33a37c6b9b51812d81 /src/semanticanalysis/STentry.java
parentfc712f94a7ed8554d8d44f4965be367354a7e670 (diff)
Semantic check for function declaration and function invocation
Diffstat (limited to 'src/semanticanalysis/STentry.java')
-rw-r--r--src/semanticanalysis/STentry.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/semanticanalysis/STentry.java b/src/semanticanalysis/STentry.java
index 0e4b00e..07b62c8 100644
--- a/src/semanticanalysis/STentry.java
+++ b/src/semanticanalysis/STentry.java
@@ -52,4 +52,10 @@ public class STentry {
return label;
}
+ @Override
+ public String toString() {
+ // Print all the fields of the STentry
+ return "Type: " + type + ", Offset: " + offset + ", Nesting: " + nesting + ", Label: " + label;
+ }
+
}