$-syntax support in grammar