diff --git a/grammar.ebnf b/grammar.ebnf index 778601869ab9ba71d0f881abc80996c4576b1c12..46a09bcd7647af8cdd3ce705fae8e6a3e3f39033 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -1,7 +1,8 @@ -/* Amount: quantity of an ingredient, exclusively */ -/* does not refer to time, size etc */ +Ambiguator ::= ("<" | ">" | "less than" | "more than") + +/* Amount: quantity of an ingredient */ /* Eg: 10 - 20 g of pasta */ -Amount ::= Digit+ ("-" | "/" | "to")? Digit* +Amount ::= Ambiguator* Digit+ ("-" | "/" | "to")? Digit* /* Digit: */ Digit ::= ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9")+ @@ -12,7 +13,7 @@ Digit ::= ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9")+ Unit ::= /* Ingredient: */ -Ingredient ::= Modification* ","* Ingredient +Ingredient ::= Modifier* Ingredient (Modifier ",")* /* Modifier: a word or phrase that modifies the ingredient */ /* Eg: "pears, chopped", "chopped pears", "chicken, skin on" */