updated grammar to better support between pattern expression