As LilyPond is based heavily on context-dependent parsing, I doubt there is a useful pure EBNF grammar. Anyway, if you look at the new antlr grammar work in progress for LilyPondTool http://lily4jedit.svn.sourceforge.net/viewvc/lily4jedit/trunk/LilyPondTool/src/lilytool/parser/lilypond/LilyPond.g3?revision=729&view=markup
you may have a clearer view on it.

Bert

Francisco Vila wrote:
2008/12/12 Dennis Harmath <[email protected]>:
Greetings,
I would like to get the pure (E)BNF grammar of the LilyPond language. I looked
for it in the package, but only found the bison parser code. Is it available
anywhere, or could it be generated somehow?

I once asked this and this was the answer:

http://www.nabble.com/Atomic-expression--to12995140.html#a13006974

I don't really know the internals in detail, but I think the LilyPond
language is complex because it mixes the expansion language Scheme
along with notes+lyrics+chords modes, and at the same time it
conserves the simplicity needed for everyday scores trhough a number
of implicit constructs. Probably this is where the word 'dirty' comes
from.

Yes, I'd also like to see those nice Pascal language diagrams I had to
learn years ago. A perfectly clean syntax would be desirable to ease
the development of third party plugins for editors etc.


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to