I would like to use the lilypond parser for my own application for
some sort of composition tool. How complicated would it be to strip
out that part of lilypond into some sort of library that would parse
mudela text and hand back a collection of objects that represent
music?
Not very difficult, but it depends on what you want to do exactly.
You might have to import a lot more than only the parser, just to make
machinery such as identifiers work. It might be easier to just paste
the relevant parts of the parser into a separate .y file.
How big of a chore would this be, and is there any relevant
documentation other than the source code?
It might be easier to just modify LilyPond, and strip off all of the
steps that come after the parsing.
--
Han-Wen Nienhuys, [EMAIL PROTECTED] ** GNU LilyPond - The Music Typesetter
http://www.cs.uu.nl/people/hanwen/lilypond/index.html