Status: Accepted
Owner: ----
Labels: Type-Enhancement Frog

New issue 2728 by [email protected]: count pairs of brackets
http://code.google.com/p/lilypond/issues/detail?id=2728

A really common failure mode when writing .ly files is to omit a closing } somewhere. Could we count all non-escaped { and }, and emit a specific error message if the numbers don't match, instead of giving the silly

Processing `foo.ly'
Parsing...
/home/gperciva/.usr/lilypond/usr/share/lilypond/current/ly/init.ly:35:0: error: syntax error, unexpected SCM_TOKEN

#(if (and (ly:get-option 'old-relative)
fatal error: failed files: "foo.ly"

message? I think this is suitable for a Frog interested in the parser/lexer/that side of things. I mean, computers are good at counting.


Reply via email to