install yacc on ubuntu

C++
sudo apt-get install bison flex

Source

Also in C++: