An open API service indexing awesome lists of open source software.

https://github.com/orsinium-labs/exp

Elixir library to statically inline expressions at compile time
https://github.com/orsinium-labs/exp

compilation compile-time elixir macro metaprogramming performance

Last synced: 6 months ago
JSON representation

Elixir library to statically inline expressions at compile time

Awesome Lists containing this project

README

          

# Exp

Elixir library to execute and inline expressions at compile time.

## Installation

```elixir
def deps do
[
{:inline, "=> 1.0.0"}
]
end
```

## Usage

Compile a regular expression at compile time (without using sigils):

```elixir
require Exp
rex = Exp.inline(Regex.compile!("[0-9]+"))
```

**Documentation**: [hexdocs.pm/exp](https://hexdocs.pm/exp/Exp.html).