@@ -156,15 +156,15 @@ p[0].duration = p[2] def node(p): '''node: NODE ''' - p[0] = tree.tree(node.strip("(").strip(")")) + p[0] = tree.Tree(node.strip("(").strip(")")) def p_error(p): raise Exception("Syntax error at '%s' of element type %s" % (p.value, p.type)) yacc.yacc() #print yacc.parse("GFG B'AB,, | g/2fg gab | GFG BAB | d2A AFD") return yacc.parse(score)