20 个版本 (6 个重大更新)

新功能 0.8.2 2024 年 8 月 20 日
0.8.1 2024 年 5 月 27 日
0.7.0 2024 年 4 月 24 日
0.3.1 2023 年 11 月 10 日
0.2.8 2023 年 6 月 11 日

#852解析器实现

Download history • Rust 包仓库 4/week @ 2024-05-16 • Rust 包仓库 262/week @ 2024-05-23 • Rust 包仓库 61/week @ 2024-05-30 • Rust 包仓库 8/week @ 2024-06-06 • Rust 包仓库 2/week @ 2024-06-13 • Rust 包仓库 2/week @ 2024-07-25 • Rust 包仓库 107/week @ 2024-08-15 • Rust 包仓库

每月 109 次下载
recp 中使用

MIT 许可证

24KB
505

recipe-parser

recipe-lang 的解析器实现

安装

cargo add recipe-parser

使用

use recipe_parser::{parse, Token};

fn main() {
    let recipe_raw = "Boil {potatoes}(3)";
    let recipe: Vec<Token> = parse(recipe_raw);
    println!("{recipe:?}");
}

依赖项

~0.8–1.3MB
~25K SLoC