#lexer #parser #grammar #stable

lexpar

Lexer and parser crate for stable Rust. This implementation favors compile-time over run-time for generating grammars.

1 unstable release

Uses old Rust 2015

0.1.0 May 3, 2018

#175 in #stable

MIT/Apache

43KB
493 lines

lexpar

Lexer and parser crate for stable Rust.

Documentation

Usage

Add lexpar as a dependency in your Cargo.toml:

[dependency]
lexpar = "^0.1.0"

Then add this snippet to your crate's root:

#[macro_use]
extern crate lexpar;

Examples

Run a specific example with cargo run --example <name> where name can be either ml or rust.


lib.rs:

lexpar is a crate that provides a simple lexer and parser structures.

Dependencies

~3.5MB
~71K SLoC