# `PtcRunner.Lisp.Analyze.ShortFn`
[🔗](https://github.com/andreasronge/ptc_runner/blob/main/lib/ptc_runner/lisp/analyze/short_fn.ex#L1)

Analyzer for short function syntax (#()).

Transforms short function forms into desugared anonymous functions
by extracting placeholders (%, %1, %2, %&, etc.) and generating parameters.

# `desugar`

```elixir
@spec desugar([term()]) :: {:ok, term()} | {:error, term()}
```

Desugars short function syntax into a transformed AST.

Takes the body ASTs from a short_fn form and returns a desugared form
as a list-based fn form, ready for the parent analyzer to process.

Returns `{:ok, desugared_ast}` on success or `{:error, error_reason()}` on failure.

---

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