]> git.saurik.com Git - bison.git/commit - data/stack.hh
lalr1.cc: use a vector for the symbol stack
authorTheophile Ranquet <ranquet@lrde.epita.fr>
Fri, 21 Dec 2012 15:46:05 +0000 (16:46 +0100)
committerTheophile Ranquet <ranquet@lrde.epita.fr>
Fri, 11 Jan 2013 17:57:08 +0000 (18:57 +0100)
commite7b26e942d1466974e40a70a30d9044c4a90fd85
tree96f4cd6a0085b3ea8a241c20b6329f45105a52b0
parent1dbaf37f5cd0bc0e7c6a91b8996ae974c8d2cdc1
lalr1.cc: use a vector for the symbol stack

* data/lalr1.cc: Adjust includes.
* data/stack.hh (push, pop): Use push_back and pop_back.
(operator []): Access vector from the end.
data/lalr1.cc
data/stack.hh