Clixir v0.4.0 API Reference

Modules

Code to emit Elixir and C code from a single "clixir" (.cx) file.

Clixir application. This starts the Clixir wrapper server that monitors and talks to the clixir executable.

Code to emit the C code parts from Clixir

Code that is used by both the C and Elixir backends.

This module does the actual work of Clixir.__before_compile__/1. It writes out the C and GNU gperf code fragments which later on get combined to form the project's clixir executable.

Code to emit the Elixir code parts from Clixir

This wraps the clixir executable and makes it accessible. For now, we hardcode the executable and generate one massive one until there's a use case to change this ;-)

Holds the state

Mix Tasks

This tasks collects all the fragments that the Clixir macro invocations have generated, and does the finishing job. You need to add this compiler to the Mix configuration of your project, typically as a step between the regular compilation and elixir_make