improved the grammar to add precedence + response (and their variants) patterns