]> git.saurik.com Git - bison.git/blobdiff - src/scan-gram.l
* src/state.h (state_t): Replace the `lookaheadsp' member, a
[bison.git] / src / scan-gram.l
index 7e9c36731e9e50cbd57e81b253aed6ae95074cda..cd8ca5165bfdb6c1f5e92fec13f306a394219728 100644 (file)
@@ -154,7 +154,7 @@ blanks   [ \t\f]+
   {eols}      YY_LINES; YY_STEP;
   {blanks}    YY_STEP;
   {id}        {
-    yylval->symbol = getsym (yytext);
+    yylval->symbol = getsym (yytext, *yylloc);
     return ID;
   }
 
@@ -286,7 +286,7 @@ blanks   [ \t\f]+
     assert (yy_top_state () == INITIAL);
     {
       YY_OBS_FINISH;
-      yylval->symbol = getsym (last_string);
+      yylval->symbol = getsym (last_string, *yylloc);
       symbol_class_set (yylval->symbol, token_sym);
       symbol_user_token_number_set (yylval->symbol, last_string[1]);
       YY_OBS_FREE;