> 
> Yes it would, but how would you parse a balanced parenthesis
> expression using regular expressions?
> 

In theory, it can't be done, as balancing requires context-free 
beyond regular grammars. In practice though, specially given the scope
(convert.ly is not meant to be used  zillions of times, and if it is
acceptable if it fails in 0.1 % of the cases) one can cheat, and 
write the regexps to recognize balanced expressions, up to, say,
7 or 8 levels.

Or is this too crude ?

D.

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/




_______________________________________________
Bug-lilypond mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to