Return new terminal QSTRING for quoted strings, instead of the

usual symbol name type WORD; quoted strings can now only be used
where they appear in the (revised) grammar. See gram.y 1.34.
This commit is contained in:
ross 2002-06-22 02:04:28 +00:00
parent 789df24a75
commit 5ac0b7aefd

View File

@ -1,5 +1,5 @@
%{
/* $NetBSD: scan.l,v 1.31 2002/06/05 10:56:19 lukem Exp $ */
/* $NetBSD: scan.l,v 1.32 2002/06/22 02:04:28 ross Exp $ */
/*
* Copyright (c) 1992, 1993
@ -144,7 +144,7 @@ with return WITH;
unput(tok);
}
yylval.str = intern(yytext + 1);
return WORD;
return QSTRING;
}
0[0-7]* {
yylval.val = strtol(yytext, NULL, 8);