> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sifr.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# SIFR-PARSE-0003: Lexical or interpolated string parser failure.

> Lexical or interpolated string parser failure.

`SIFR-PARSE-0003` belongs to the **Parsing** diagnostic family. It means: lexical or interpolated string parser failure.

## Why It Happens

The parser cannot recover a supported Sifr syntax tree from the source. Fix syntax before type, ownership, or package analysis can continue.

<Info>
  Use `sifr --explain SIFR-PARSE-0003` locally to see the renderer's exact message template and any machine-applicable suggestions for the compiler version you are running.
</Info>

## Erroneous Code

```python theme={null}
def main( -> int:
    return 1
```

## How To Fix It

Fix the source syntax first. Parser diagnostics happen before Sifr can reason about types, ownership, or package structure.

## Fixed Code

```python theme={null}
def main() -> int:
    return 1
```

## Details

| Field                  | Value                                                     |
| ---------------------- | --------------------------------------------------------- |
| Code                   | `SIFR-PARSE-0003`                                         |
| Family                 | `PARSE`                                                   |
| Severity               | Error                                                     |
| Stability              | stable                                                    |
| Owner                  | `sifr_driver::frontend::api`                              |
| Representative fixture | `crates/sifr/tests/e2e/fail/parser_malformed_string.sifr` |

See the [Error Codes index](/diagnostics/error-codes) for the complete catalog.
