initial steps on compiler and some improvements to the grammar