cookbook-dsl/grammar.ebnf

9 lines
249 B
EBNF
Raw Permalink Normal View History

2017-04-05 00:20:53 +00:00
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};