Changed Parser to be a virtual base class, inherited by LALRParser