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:
parent
789df24a75
commit
5ac0b7aefd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user