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
- Host: GitHub
- URL: https://github.com/orsinium-labs/exp
- Owner: orsinium-labs
- License: mit
- Created: 2022-05-19T07:35:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-19T07:52:16.000Z (over 3 years ago)
- Last Synced: 2025-03-29T01:34:14.001Z (7 months ago)
- Topics: compilation, compile-time, elixir, macro, metaprogramming, performance
- Language: Elixir
- Homepage: https://hexdocs.pm/exp/
- Size: 13.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).