working version of the grammar input parsing