Skip to content
Snippets Groups Projects
Commit 7cba1a93 authored by alangfel's avatar alangfel
Browse files

modular restaurant grammar

parent bec15bf6
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];
<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;
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