7 releases
0.0.8 | May 20, 2019 |
---|---|
0.0.7 | Oct 31, 2017 |
0.0.6 | Jun 25, 2017 |
#2516 in Parser implementations
150KB
4.5K
SLoC
erl_parse
Erlang source code parser written in Rust.
References
Limitations
- Supports only UTF-8 source codes
lib.rs
:
Erlang source code parser.
Examples
extern crate erl_parse;
extern crate erl_pp;
extern crate erl_tokenize;
use erl_parse::{Parser, TokenReader};
use erl_parse::cst::Expr;
use erl_pp::Preprocessor;
use erl_tokenize::Lexer;
let text = r#"io:format("Hello World")"#;
let mut parser = Parser::new(TokenReader::new(Preprocessor::new(Lexer::new(text))));
parser.parse::<Expr>().unwrap();
Dependencies
~2.5MB
~52K SLoC