# DirectiveParser

**Kind:** Class

**Source:** [`atloria-monorepo/packages/core/src/rendering/directive-parser.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/core/src/rendering/directive-parser.ts#L61)

Directive Parser

## Methods

| Method | Signature | Returns |
|---|---|---|
| `parse` | `parse(content: string)` | `DocumentAST` |

## Where it refuses work

- `DirectiveParser` stops the work with an early return when `expr.startsWith('!')`.
- `DirectiveParser` stops the work with an early return when `expr.startsWith('(') && expr.endsWith(')')`.

## When something fails

- `DirectiveParser` handles failure in 1 place: it turns it into a return value in all 1.
