1 unstable release
0.1.0 | May 19, 2023 |
---|
#194 in #unit
2KB
promptc-rs
use block parser
use promptc::block::Unit;
let unit: Result<Unit, _> = Unit::from_str("...");
use example
> cargo run --example exam abc
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `C:\Users\enter\projects\.cargo\targets\debug\examples\exam.exe abc`
Ok(Unit([Expr { normal_text: "abc", interp: None }]))