# HARN-PAR-002 — parser reached end of file while expecting syntax
**Category:** Parser (PAR)
**Variant:** `Code::ParserUnexpectedEof` (parser unexpected eof)
## What it means
The lexer or parser raises this before type checking even starts. Harn cannot
build an AST from the source until the offending token sequence is repaired.
Specifically: parser reached end of file while expecting syntax.
## How to fix
- Re-read the source around the highlighted span and restore the missing token(s).
- If the surrounding construct is a multi-line expression, check brace / bracket balance.
## Stability
This code is stable. Its identifier, category, and meaning will not change
without a deprecation cycle. Cross-language tooling and IDE integrations can
dispatch on it directly.