| Crates.io | recipe_parser_andrewromanyk |
| lib.rs | recipe_parser_andrewromanyk |
| version | 0.1.2 |
| created_at | 2024-11-10 20:26:41.652658+00 |
| updated_at | 2024-11-10 20:36:17.084742+00 |
| description | A parser for food recipes. Divides recipes into: name, description, ingredients and instructions. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1443198 |
| size | 23,303 |
A parser for food recipes. Divides recipes into: name, description, ingredients and instructions.
A recipe is parsed by being divided into 4 aforementioned parts, each having its own form. Many rules are "hidden" for easier parsing, e.g. spaces, separate letters, delimiters, etc.
Страва: Бутерброд з ковбасою
Опис: простий бутерброд
Інгредієнти:
Ковбаса - 1 шт
Сир - 1 уп
Хліб - 1 скибка
Кроки:
- Нарізати ковбасу і покласти на хліб
- Покласти сир на ковабсу
reicpeTitle = "Бутерброд з ковбасою"
recipeDescription = "простий бутерброд"
recipeIngredientsFull = [
("Ковбаса", (1, "шт")),
("Сир", (1, "уп")),
("Хліб", (1, "скибка"))
]
recipeInstructionsFull = [
"Нарізати ковбасу і покласти на хліб",
"Покласти сир на ковабсу"
]