ec_compile

These are various utility functions to help with compiling and decompiling erlang source.

These are various utility functions to help with compiling and decompiling erlang source. They are mostly useful to the language/parse transform implementor.

Functions


beam_to_erl_source(BeamFName::string(), ErlFName::string()) -> ok | term()

decompile a beam file that has been compiled with +debug_info into a erlang source file

erl_source_to_core_ast(Path::filename() (see module file)) -> CoreAst::term()

compile an erlang source file into a Core Erlang AST

erl_source_to_erl_ast(Path::filename() (see module file)) -> ErlangAst::term()

compile an erlang source file into an Erlang AST

erl_source_to_asm(Path::filename() (see module file)) -> ErlangAsm::term()

compile an erlang source file into erlang terms that represent the relevant ASM

erl_source_to_erl_syntax(Path::filename() (see module file)) -> string()

compile an erlang source file to a string that displays the 'erl_syntax1 calls needed to reproduce those terms.

erl_string_to_erl_ast(StringExpr::string()) -> ErlangAst::term()

compile a string representing an erlang expression into an Erlang AST

erl_string_to_core_ast(StringExpr::string()) -> CoreAst::term()

compile a string representing an erlang expression into a Core Erlang AST

erl_string_to_asm(StringExpr::string()) -> ErlangAsm::term()

compile a string representing an erlang expression into a term that represents the ASM

erl_string_to_erl_syntax(BinaryExpr::string() | binary()) -> string()

compile an erlang source file to a string that displays the 'erl_syntax1 calls needed to reproduce those terms.

Eric Merritt
View Functions