Updated the parser to the new interface of pegjs