created file 'test' which boilds grammar down to simplest form. Helped find problem, but not solution