# `Ancora.Parser`
[🔗](https://github.com/iautom8things/ancora/blob/main/lib/ancora/parser.ex#L1)

Parses `.spec/specs/*.spec.md` files.

`parse_file/2` is a semver-stable public function. Its return shape is a
map with string keys `"file"`, `"title"`, `"meta"`, `"requirements"`,
`"scenarios"`, `"verification"`, `"exceptions"`, `"parse_errors"`, and
`"findings"`. That shape is unchanged within a major version.

The `"exceptions"` key and `spec-exceptions` block are deprecated. Ancora
1.x continues to parse and return them. Ancora 2.0 will remove them.

The commitment is also documented in the README.

# `parse_file`

```elixir
@spec parse_file(Path.t(), Path.t()) :: map()
```

Parses a spec file at `path` relative to `root`.

This function is semver-stable public API. Its `"exceptions"` return key is
deprecated and will be removed in Ancora 2.0.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
