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

# Language Coverage

> Python language and library features supported by the compiler.

## Writing the Function Body

The function body can contain arbitrary Python code. Given that the Muna compiler is currently a
proof of concept, it has limited coverage for Python language features. Below is a list of Python
language features that we either partially support, or do not support at all:

> [accordion] Functions
>
> | Statement | Status | Notes |
> | :- | :-: | :- |
> | Recursive functions | 🔨 | Recursive functions **must** have a return type annotation. |
> | Lambda expressions | 🚧 | Lambda expressions [can be invoked](https://github.com/muna-ai/compiler/blob/main/predictors/language/lambda.py), but cannot be used as objects. |

> [accordion] Literals
>
> | Collection | Status | Notes |
> | :- | :-: | :- |
> | List literals | 🚧 | List must contain primitive members (e.g. `int`, `str`). |
> | Dictionary literals | 🚧 | Dictionary must contain primitive members (e.g. `int`, `str`). |
> | Set literals | 🚧 | Set must contain primitive members (e.g. `int`, `str`). |
> | Tuple literals | 🚧 | Tuple must contain primitive members (e.g. `int`, `str`). |

> [accordion] Classes
>
> Tracing through classes is not yet supported.

> [accordion] Exceptions
>
> | Statement | Status | Notes |
> | :- | :-: | :- |
> | `raise` statements | 🔨 | |
> | `try..except` statement | 🔨 | |

> [!NOTE]
>
> Over time the list of unsupported language features will shrink and eventually, will be empty.

## Library Coverage

We are adding support for popular libraries, across tensor frameworks, scientific computing, and more:

> [accordion] Supported Libraries
>
> Below are libraries currently supported by our compiler:

> [!TIP]
>
> If you need a specific library to be supported by the Muna compiler, [reach out to us](mailto:hi@muna.ai).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.