From: fred Date: Sun, 1 Dec 1996 21:56:33 +0000 (+0000) Subject: lilypond-0.0.13 X-Git-Tag: release/1.5.59~6707 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=97bc6747d1713f3f8ac8d143ab79aad86ff4a288;p=lilypond.git lilypond-0.0.13 --- diff --git a/src/lexer.l b/src/lexer.l index 14892c3406..ab97197fa9 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -80,17 +80,21 @@ REAL [0-9]+(\.[0-9]*)? } [ \t\n]+ { } -%.* { +%.*$ { } \$ { BEGIN(INITIAL); return '$'; } -[\[{)] { /* parens () are NO mistake */ +[{}] { + return YYText()[0]; + +} +[\[)] { /* parens () are NO mistake */ yylval.c = YYText()[0]; return OPEN_REQUEST_PARENS; } -[\]}(] { /* parens () are NO mistake */ +[\](] { /* 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; }