A rebar plugin for translating Elixir files to Erlang equivalents.
-
Create a new rebar3 project:
rebar3 new lib mylib -
Add plugin to your project's
rebar.config:%% rebar.config {plugins, [ {rebar_ex2erl, {git, "git@github.com:wojtekmach/rebar_ex2erl.git"}} ]}. {provider_hooks, [ {post, [{compile, {ex2erl, compile}}]} ]}.
-
Add an Elixir file with a module:
# src/foo.ex defmodule :foo do def hello() do :world end end
-
Compile your project:
rebar3 compile -
An Erlang file for your Elixir module has automatically been created:
%% generated by ex2erl, do not edit manuaally -file("src/foo.erl", 1). -module(foo). -compile([no_auto_import]). -export([hello/0]). hello() -> world.
- https://github.com/aerosol/decompilerl
- https://github.com/michalmuskala/decompile
- https://github.com/okeuday/reltool_util
Copyright (c) 2020 Wojciech Mach
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.