cttt-parser

Crates.io Docs.rs Test Audit

A parser for the Change This Then That.

Examples

Basic usage:

``` let s = " // @cttt.name(foo) let x = 1; // @cttt.change(bar)

// @cttt.name(bar) let y = 2; // @cttt.change(foo) ";

println!("{:#?}", cttt_parser::parse(&s)); ```

Strict usage:

``` let s = " // @cttt.name(foo) let x = 1; // @cttt.change(bar)

// @cttt.name(bar) let y = 2; // @cttt.change(foo) ";

println!( "{:#?}", ctttparser::parsestrict(&s, vec!["name".tostring(), "change".tostring()]) ); ```