cookbook-dsl/grammar.ebnf

9 lines
249 B
EBNF

recipe = title, ingredients, (*tools,*) method;
title = string;
ingredients = {amount, ingredient}
| {amount, unit, ingredient};
amount = fractional number;
unit = "mL" | "L" | "g" | "kg";
ingredient = "æg" | "mælk";
method = {step};