added higher order functions to grammar in language ref