Implement LA grammar