Fuse yyval and yyloc into yylhs.
commite1f93869dab102a7db1f6251a590af2e2a00d405
authorAkim Demaille <demaille@gostai.com>
Thu, 31 Jul 2008 09:57:45 +0000 (31 11:57 +0200)
committerAkim Demaille <demaille@gostai.com>
Sun, 9 Nov 2008 18:29:38 +0000 (9 19:29 +0100)
treeda69b7d530deac1a2503b4d2551f3caef8966cb3
parent2935744b3a563ff41d9cc7e6c21ffb4e86767717
Fuse yyval and yyloc into yylhs.

* data/lalr1.cc (b4_lhs_value, b4_lhs_location): Adjust to using
yylhs.
(parse): Replace yyval and yyloc with yylhs.value and
yylhs.location.
After a user action, compute yylhs.state earlier.
(yyerrlab1): Do not play tricks with yylhs.location, rather, use a
fresh error_token.
ChangeLog
data/lalr1.cc