#erlang #syntax-tree #ast #abstract #module #programs #representation

erl_ast

A Rust representation of Abstract Syntax Trees of Erlang modules

8 releases

Uses old Rust 2015

0.1.1 May 23, 2021
0.1.0 Apr 24, 2021
0.0.6 Nov 30, 2016
0.0.5 Oct 16, 2016
0.0.4 Jun 10, 2016

#43 in #erlang

42 downloads per month

MIT license

83KB
2.5K SLoC

erl_ast

Actions Status Coverage Status License: MIT

A Rust library for working with Abstract Syntax Trees of Erlang programs

Documentation

See RustDoc Documentation.

Installation

Add following lines to your Cargo.toml:

[dependencies]
erl_ast = "*"

Reference


lib.rs:

A Rust representation of Abstract Syntax Trees of Erlang modules.

Currently the library provide only a functionality that loading ASTs from beam files which have debug infos.

See also: The Abstract Format

Examples

use erl_ast::AST;

let ast = AST::from_beam_file("src/testdata/test.beam").unwrap();
println!("{:?}", ast);

Dependencies

~1.4–2MB
~41K SLoC