Skip to content
Snippets Groups Projects
Commit 29aac473 authored by alangfel's avatar alangfel
Browse files

restructred grammar

parent 495e200d
No related branches found
No related tags found
No related merge requests found
#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];
<ordering> = ordering;
<savePlaceLeft> = left;
<savePlaceRight> = right;
<savePlace> = <save>;
<save> = save [the] (place | location) [[to | on] [the | my] (<savePlaceRight> | <savePlaceLeft>)];
#JSGF V1.0;
grammar restaurant_location;
public <restaurant> = [tobi] [please] <command> [please] [tobi];
<command> = <objectCategory> | <deliveryLocations>;
<deliveryLocations> = table (one | two | three);
<objectCategory> = drinks | snacks;
#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 | apple;
#JSGF V1.0;
grammar ToBI_restaurant;
public <restaurant> = [tobi] [please] <command> [please] [tobi];
<command> = <followMe> | <stop> | <beverages> | <ordering> | <deliveryLocations> | <savePlaceLeft> | <savePlaceRight> | <savePlace>;
<followMe> = (follow me) | (come [(with me) | here]) | (keep up);
<stop> = stop [this];
<beverages> = <objectCategory> | <objects>;
<objectCategory> = drinks | snacks;
<objects> = <drinks> | <snacks>;
<drinks> = (orange juice) | (fruit juice) | (ice tea) | coffee | beer;
<snacks> = chocolates | (chewing gum) | peanuts;
<ordering> = ordering;
<deliveryLocations> = table (one | two | three);
<savePlaceLeft> = left;
<savePlaceRight> = right;
<savePlace> = <save>;
<save> = save [the] (place | location) [[to | on] [the | my] (<savePlaceRight> | <savePlaceLeft>)];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment