]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.13
authorfred <fred>
Sun, 1 Dec 1996 21:56:33 +0000 (21:56 +0000)
committerfred <fred>
Sun, 1 Dec 1996 21:56:33 +0000 (21:56 +0000)
src/lexer.l

index 14892c3406a22542767ae07668bc633010a25d02..ab97197fa9ae6ed15125c28f4e432a47641b955f 100644 (file)
@@ -80,17 +80,21 @@ REAL                [0-9]+(\.[0-9]*)?
 }
 <notes>[ \t\n]+                {
 }
-<notes>%.*             {
+<notes>%.*$            {
 
 }
 <notes>\$      {
        BEGIN(INITIAL); return '$';
 }
-<notes>[\[{)]  { /* parens () are NO mistake */
+<notes>[{}]    {
+       return YYText()[0];
+       
+}
+<notes>[\[)]   { /* parens () are NO mistake */
        yylval.c = YYText()[0];
        return OPEN_REQUEST_PARENS;
 }
-<notes>[\]}(]  { /* parens () are NO mistake */
+<notes>[\](]   { /* parens () are NO mistake */
        yylval.c = YYText()[0];
        return CLOSE_REQUEST_PARENS;
 }
@@ -166,6 +170,12 @@ REAL               [0-9]+(\.[0-9]*)?
 
 yyFlexLexer *lexer=0;
 
+bool
+busy_parsing()
+{
+    return lexer;      
+}
+
 // set the  new input to s, remember old file.
 void
 new_input(String s)
@@ -226,4 +236,5 @@ void
 kill_lexer()
 {
        delete lexer;
+       lexer = 0;
 }