Current section
Files
Jump to
Current section
Files
lib/brewery.ex
defmodule Brewery do
@moduledoc """
Transform Erlang's [Abstract Format](http://erlang.org/doc/apps/erts/absform.html) to LLVM IR then to native code.
"""
def compile({_version, ast}, compile_path, shims) do
Enum.each(ast, &case &1 do
{:function, _line, name, arity, clauses} ->
IO.inspect("#{name}/#{arity}")
IO.inspect(clauses)
IO.puts "\n"
other -> other
end)
{:error, "brewery not finished"}
end
end