1
0
Fork 0

comments improve code

This commit is contained in:
Kevin Matz 2018-10-20 23:38:11 -04:00
parent c352384822
commit b63198d581
1 changed files with 2 additions and 1 deletions

View File

@ -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):