From e36c8820b4be398b202308aee46bb773be8e5d18 Mon Sep 17 00:00:00 2001 From: Alexey Dubovskoy Date: Sun, 14 Nov 2021 19:45:17 +0000 Subject: [PATCH] Fix issue which considered zero symbols as valid for some terms In particular: * multiword * word * text item --- EBNF.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EBNF.md b/EBNF.md index f4ad6ff..972c805 100644 --- a/EBNF.md +++ b/EBNF.md @@ -6,7 +6,7 @@ recipe = { metadata | step } ; (* not sure how to show that, but two below should start from a new line *) metadata = ">", ">", multiword, ":", { white space }, text item | number| amount, new line character ; -step = { text item | ingredient | cookware | timer }, new line character ; +step = { text item | ingredient | cookware | timer }-, new line character ; ingredient = one word ingredient | multiword ingredient ; @@ -28,10 +28,10 @@ quantity = number | multiword ; units = multiword | punctuation character; -multiword = { word | white space } ; +multiword = { word | white space }- ; (* yay, emoji! *) -word = { alphabetic character | digit | symbol character - cooklang ancillary character } ; -text item = { alphabetic character | digit | symbol character | punctuation character | white space } +word = { alphabetic character | digit | symbol character - cooklang ancillary character }- ; +text item = { alphabetic character | digit | symbol character | punctuation character | white space }- ; number = integer | fractional | decimal ; fractional = integer, { white space }, "/", { white space }, integer ;