summaryrefslogtreecommitdiff
path: root/src/Main.java
diff options
context:
space:
mode:
authorgeno <gabriele.genovese2@studio.unibo.it>2024-06-25 16:04:07 +0200
committergeno <gabriele.genovese2@studio.unibo.it>2024-06-25 16:04:07 +0200
commitb12c01732860f9727626829e0b25a273de5fe5c7 (patch)
tree50bbf73b7bb191bfcc00ad42a58f67b131d4d125 /src/Main.java
parentda554f4281da45a22f7101f26cfdf274149c7966 (diff)
check semantic of defined and undefined variables implemented
do not check for built-in function works on the example
Diffstat (limited to 'src/Main.java')
-rw-r--r--src/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.java b/src/Main.java
index 3987bad..bfc21e3 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -60,7 +60,7 @@ public class Main {
Node ast = visitor.visit(tree);
ArrayList<SemanticError> errors = ast.checkSemantics(ST, 0);
if (errors.size() > 0) {
- System.out.println("You had: " + errors.size() + " errors:");
+ System.out.println("You had " + errors.size() + " errors:");
for (SemanticError e : errors) {
System.out.println("\t" + e);
}