I have written a parser in Python that uses a module called simpleparse. simpleparse takes an EBNF description and does callbacks for each construct that matches. I currently can parse all of my test abc files, but have not finished the data structures for holding all of the data. I am in the process right now of finishing up those data structures (mostly class definitions) at which point I plan to finish populating them from the parser and then I hope to write a MIDI output. After seeing the discussions about the XML formats, I want to see if there are MXML class definitions that anyone has written for python and if so, I may just use those directly.
My motivation is that no one really handles voice overs correctly in MIDI output, and we use them in almost every song we capture for creating rehearsal files for a choir that I am in. I started with the abc 2.0 ABNF written by Henrik Norbeck and fixed a bunch of problems so that it could actually be used by a parser. I also wrote a pre-processor in python that removes comments and handles line-continuations appropriately because these are done differently in 1.x and 2.0 versions of abc and trying to handle both of these in the BNF was a royal pain. tom -- tom satter - or just plain old tom [EMAIL PROTECTED] (303) 543-7623 (home) (303) 499-4100 (work) To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html
