Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 742 Bytes

Readme.md

File metadata and controls

30 lines (19 loc) · 742 Bytes

Cooklang-rs

A cooklang parser, implemented in Rust for Rust and Python, following the EBNF of the language

The rust parser is implemented using a parser combinator: nom. Precise data structure are defined for the different element of the language : Metadata, Ingredient, Cookware and Timer.

The python parser is a binding of the rust parser using PyO3

Test

Both pass the canonical tests.

To run the test in rust, run:

cd cooklang-rs
cargo test

To run the test in python, first install the package using

maturin develop

then run

python -m unittest discover -s ./tests