mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-28 18:35:42 +00:00
"," now elicits a warning, rather than being
a token; this is more compatible with byacc.
This commit is contained in:
1 parent
1773ceee65
commit
763ed7a687
1 file changed
+5
-1
+5
-1
@@ -266,11 +266,15 @@ splice (\\[ \f\t\v]*\n)*
|
||||
"=" return EQUAL;
|
||||
":" rule_length = 0; return COLON;
|
||||
"|" rule_length = 0; return PIPE;
|
||||
"," return COMMA;
|
||||
";" return SEMICOLON;
|
||||
|
||||
[ \f\n\t\v] STEP;
|
||||
|
||||
"," {
|
||||
warn_at (*loc, _("stray `,' treated as white space"));
|
||||
STEP;
|
||||
}
|
||||
|
||||
{id} {
|
||||
val->symbol = symbol_get (yytext, *loc);
|
||||
rule_length++;
|
||||
|
||||
Reference in new issue
Block a user