Update parser and AST for 5.1 and make public