From: fred Date: Sat, 2 Nov 1996 00:19:25 +0000 (+0000) Subject: lilypond-0.0.6 X-Git-Tag: release/1.5.59~6961 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=823f34ead8def57f61ae0789bccacfc62c6fe226;p=lilypond.git lilypond-0.0.6 --- diff --git a/lexer.l b/lexer.l index 46a30cf752..008f813bf5 100644 --- a/lexer.l +++ b/lexer.l @@ -92,11 +92,17 @@ REAL [0-9]+(\.[0-9]*)? } {WORD} { int l = lookup_keyword(YYText()); - if (l == -1){ - yylval.id = lookup_identifier(YYText()); - return IDENTIFIER; - } else - return l; + if (l != -1) + return l; + Identifier * id = lookup_identifier(YYText()); + if (id) { + yylval.id = id; + return IDENTIFIER; + } + String *sp = new String( YYText()); + mtor << "new id: " << *sp; + yylval.string=sp; + return NEWIDENTIFIER; } {REAL} { @@ -113,7 +119,7 @@ REAL [0-9]+(\.[0-9]*)? mtor << "parens\n"; return YYText()[0]; } -[:] { +[:=] { char c = YYText()[0]; mtor << "misc char" <