Refactor RobotLangVisitorUser to remove unnecessary imports and clean up code

This commit is contained in:
bobbert committed 2026-04-27 15:30:17 +01:00
1 parent ea6d32b726
commit 3fc4eac47b
2 files changed
+2 -9

No files matched your search

+2 -9
View File
@@ -1,8 +1,4 @@
from antlr4 import *
if "." in __name__:
from .RobotLangParser import RobotLangParser
else:
from RobotLangParser import RobotLangParser
from RobotLangVisitor import RobotLangVisitor
class RobotLangVisitorUser(RobotLangVisitor):
def __init__(self, student_id="2320390"):
@@ -37,7 +33,4 @@ class RobotLangVisitorUser(RobotLangVisitor):
# Visit all statements inside the repeat block
for stat_ctx in ctx.stat():
self.visit(stat_ctx)
return None
del RobotLangParser
return None
BIN
View File
Binary file not shown.