diff --git a/comment.py b/comment.py index a77b085..a73f1f0 100755 --- a/comment.py +++ b/comment.py @@ -51,6 +51,9 @@ logger.info("Adding Hog device at net# " + str(net)) servers[net] = udp_client.SimpleUDPClient(server.get("ip", "10.0.0.1"), server.getint("port", 6600)) +oscMacro = OscCommentMacroListener(servers) +walker = antlr4.ParseTreeWalker() + def comment(text): input_stream = antlr4.InputStream(text) @@ -63,8 +66,6 @@ def comment(text): except SyntaxError as e: logger.error(e) return - oscMacro = OscCommentMacroListener(servers) - walker = antlr4.ParseTreeWalker() walker.walk(oscMacro, tree)