LALR parser with context-sensitive extensions