This commit is contained in:
bobbert committed 2026-04-28 13:36:46 +01:00
1 parent b3fd98703a
commit d20c595e0f
10 files changed
+204

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
# Generated from fspow.g4 by ANTLR
from antlr4 import *
#from idlelib.idle_test.test_configdialog import root
if __name__ is not None and "." in __name__:
from .fspowParser import fspowParser
else:
from fspowParser import fspowParser
# superclass
from fspowVisitor import fspowVisitor
# our own imports:
from repertoire.FileCollection import *
from repertoire.Selector import *
from repertoire.FSObject import *
# for symbol table
from collections import defaultdict
# This class defines a complete specific visitor for a parse tree produced by fspowParser.
class fspowVisitorUser(fspowVisitor):
# where all the variables reside
variablesTable = defaultdict()
# just write methods to be overridden
# in future, may want to implement multiple subclasses
# but for now, I'd copy the ones I need to override here to implement them
del fspowParser