rflex

rflex is a fast lexical analyzer generator for Rust.

GitHub license Crates Status

cargo install rflex

or

Write your Cargo.toml and build.rs

```toml [package]

...

build = "build.rs"

[build-dependencies]

...

rflex = "0.2" ```

```rust extern crate rflex; use std::path::Path;

fn main() { let path = Path::new("src").join("target.l"); let path = path.tostr().unwrap().tostring(); if let Err(e) = rflex::process(path) { eprintln!("{}", e); std::process::exit(1); } } ```

See tutorial.md.

Unsupported regular-expression

License

Copyright

Dependent libraries

These libraries are used only rflex lexer generator, generated code doesn't depend on them.