From b50c7e99603e9f85d82d700d62c16c4fcef88715 Mon Sep 17 00:00:00 2001 From: Geno <48206120+gabrielegenovese@users.noreply.github.com> Date: Thu, 11 Jul 2024 12:57:56 +0200 Subject: Code generation (#20) Co-authored-by: geno Co-authored-by: Santo Cariotti --- src/ParseAll.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ParseAll.java') diff --git a/src/ParseAll.java b/src/ParseAll.java index 7def6f4..06b99ad 100644 --- a/src/ParseAll.java +++ b/src/ParseAll.java @@ -34,12 +34,11 @@ public class ParseAll { Python3Parser.RootContext tree = parser.root(); String treeStr = tree.toStringTree(); - // System.out.println(treeStr); Python3VisitorImpl visitor = new Python3VisitorImpl(); SymbolTable ST = new SymbolTable(); Node ast = visitor.visit(tree); - ArrayList errorsWithDup = ast.checkSemantics(ST, 0); + ArrayList errorsWithDup = ast.checkSemantics(ST, 0, null); ArrayList errors = Share.removeDuplicates(errorsWithDup); if (!errors.isEmpty()) { System.out.println(); -- cgit v1.2.3-18-g5258