From 44933be3aee9bdc1e5cc68b284574f527aefcf36 Mon Sep 17 00:00:00 2001 From: "Esteban Prince, Liam (UG - Computer Science)" <le00210@surrey.ac.uk> Date: Mon, 24 Feb 2020 21:06:43 +0000 Subject: [PATCH] Update grammar.ebnf --- grammar.ebnf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammar.ebnf b/grammar.ebnf index 46a09bc..dcb5f8e 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -4,8 +4,8 @@ Ambiguator ::= ("<" | ">" | "less than" | "more than") /* Eg: 10 - 20 g of pasta */ Amount ::= Ambiguator* Digit+ ("-" | "/" | "to")? Digit* -/* Digit: */ -Digit ::= ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9")+ +/* Number: */ +Number ::= ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9")+ /* Unit: unit of measure */ /* recognises synonyms or shorthand */ -- GitLab