]> git.saurik.com Git - bison.git/blobdiff - src/parse-gram.c
Let symbols have a location.
[bison.git] / src / parse-gram.c
index a4bb0bcff3c5dcc1678c40ad3e1d76acd2c1241f..842793ed970b3f86d94fcdb26c65114849049a99 100644 (file)
@@ -1489,7 +1489,7 @@ yyreduce:
 
   case 64:
 #line 339 "parse-gram.y"
-    { yyval.symbol = getsym (yyvsp[0].string); }
+    { yyval.symbol = getsym (yyvsp[0].string, yylsp[0]); }
     break;
 
   case 65:
@@ -1500,7 +1500,7 @@ yyreduce:
   case 66:
 #line 350 "parse-gram.y"
     {
-      yyval.symbol = getsym (yyvsp[0].string);
+      yyval.symbol = getsym (yyvsp[0].string, yylsp[0]);
       symbol_class_set (yyval.symbol, token_sym);
     }
     break;