Skip to content

Commit

Permalink
Fix issue which considered zero symbols as valid for some terms
Browse files Browse the repository at this point in the history
In particular:
* multiword
* word
* text item
  • Loading branch information
dubadub authored Nov 14, 2021
1 parent 9e3fdb3 commit e36c882
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EBNF.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand All @@ -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 ;
Expand Down

0 comments on commit e36c882

Please sign in to comment.