]> git.saurik.com Git - bison.git/blobdiff - src/scan-gram.c
Let symbols have a location.
[bison.git] / src / scan-gram.c
index 85bac479b520b178a9d1eeb6144923ff8c19f143..7d96db7f1b66c45c2888046f870537fa6a4e085f 100644 (file)
@@ -1259,7 +1259,7 @@ case 34:
 YY_RULE_SETUP
 #line 156 "scan-gram.l"
 {
-    yylval->symbol = getsym (yytext);
+    yylval->symbol = getsym (yytext, *yylloc);
     return ID;
   }
        YY_BREAK
@@ -1450,7 +1450,7 @@ YY_RULE_SETUP
     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;