Updated reference parser to use new AST specs