Skip to content

orsinium-labs/exp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exp

Elixir library to execute and inline expressions at compile time.

Installation

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

Usage

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

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

Documentation: hexdocs.pm/exp.