From 7cba1a93089db96a47bfaa52ee87e7a350920d68 Mon Sep 17 00:00:00 2001
From: alangfel <alangfel@techfak.uni-bielefeld.de>
Date: Wed, 25 Jun 2014 11:06:56 +0200
Subject: [PATCH] modular restaurant grammar

---
 ps-grammar/restaurant/command.jsgf  | 12 ++++++++++++
 ps-grammar/restaurant/location.jsgf |  8 ++++++++
 ps-grammar/restaurant/object.jsgf   |  9 +++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 ps-grammar/restaurant/command.jsgf
 create mode 100644 ps-grammar/restaurant/location.jsgf
 create mode 100644 ps-grammar/restaurant/object.jsgf

diff --git a/ps-grammar/restaurant/command.jsgf b/ps-grammar/restaurant/command.jsgf
new file mode 100644
index 00000000..7c5ab47c
--- /dev/null
+++ b/ps-grammar/restaurant/command.jsgf
@@ -0,0 +1,12 @@
+#JSGF V1.0;
+grammar restaurant_command;
+
+public <restaurant> = [tobi] [please] <command> [please] [tobi];
+<command> = <followMe> | <stop> | <ordering> | <savePlaceLeft> | <savePlaceRight> | <savePlace>;
+<followMe> = (follow me) | (come [(with me) | here]) | (keep up);
+<stop> = stop [this];
+
+<savePlaceLeft> = left;
+<savePlaceRight> = right;
+<savePlace> = <save>;
+<save> = save [the] (place | location) [[to | on] [the | my] (<savePlaceRight> | <savePlaceLeft>)];
diff --git a/ps-grammar/restaurant/location.jsgf b/ps-grammar/restaurant/location.jsgf
new file mode 100644
index 00000000..b1b49f78
--- /dev/null
+++ b/ps-grammar/restaurant/location.jsgf
@@ -0,0 +1,8 @@
+#JSGF V1.0;
+grammar restaurant_location;
+
+public <restaurant> = [tobi] [please] <command> [please] [tobi];
+<command> = <objectCategory> | <deliveryLocations>;
+
+<deliveryLocations> = table (one | two | three);
+<objectCategory> = drinks | snacks;
diff --git a/ps-grammar/restaurant/object.jsgf b/ps-grammar/restaurant/object.jsgf
new file mode 100644
index 00000000..8e42f447
--- /dev/null
+++ b/ps-grammar/restaurant/object.jsgf
@@ -0,0 +1,9 @@
+#JSGF V1.0;
+grammar restaurant_object;
+
+public <restaurant> = [tobi] [please] <command> [please] [tobi];
+<command> = <objects>;
+<objects> = <drinks> | <snacks>;
+
+<drinks> = (orange juice) | (fruit juice) | (ice tea) | coffee | beer;
+<snacks> = chocolates | (chewing gum) | peanuts;
-- 
GitLab