lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lilypond BNF


From: Carl Sorensen
Subject: Lilypond BNF
Date: Tue, 26 Jul 2005 11:18:48 -0600

Almost a year ago, Pedro Kroger was working on a bnf description of
lilypond. (see  http://lists.gnu.org/archive/html/lilypond-
devel/2004-10/msg00074.html).  Han-Wen suggested hacking Bison so that
it would produce the BNF directly from the .yy file.

I went a different direction, and produced a python script that ignores
all the C++ stuff in parser.yy, resulting in a BNF description of
lilypond that is generated directly from the parser.

I've attached the script (yy2bnf.py), along with the result of running
the script on the current CVS version of parser.yy (lilypond.bnf).

I'd like to suggest that lilypond.bnf be added to the documentation, to
be automatically generated as part of the make process, using yy2bnf.py.

Thanks,

Carl Sorensen
-- 
Carl Sorensen <address@hidden>

Attachment: yy2bnf.py
Description: application/python

Attachment: lilypond.bnf
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]