grammar converted with stubs