summaryrefslogtreecommitdiff
path: root/src/semanticanalysis/STentry.java
diff options
context:
space:
mode:
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;
+ }
+
}