Resync the parser and grammar