A simple stack automata made on C++.