move ast_spec to parser_spec