From b63198d581a799c553a706f07cb9307e896bb031 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Sat, 20 Oct 2018 23:38:11 -0400 Subject: [PATCH] comments improve code --- OscCommentMacroListener.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):