diff --git a/OscCommentMacroListener.py b/OscCommentMacroListener.py index 699c089..cd8b574 100644 --- a/OscCommentMacroListener.py +++ b/OscCommentMacroListener.py @@ -221,16 +221,17 @@ class OscCommentMacroListener(CommentMacroListener): ctx.time = None def exitMacro(self, ctx: CommentMacroParser.MacroContext): + # print the lisp tree of this macro lisp_tree_str = ctx.toStringTree(recog=self.parser) print(beautify_lisp_string(lisp_tree_str)) + # execute macro from name name = ctx.children[0].getText() try: command[name](self, ctx) except KeyError: print(name + " macro is not compatable with OSC.") return -1 - print("Exiting Macro") def enterMaster(self, ctx: CommentMacroParser.MasterContext):