Skip to content
Snippets Groups Projects
Commit 6fe74c3e authored by alangfel's avatar alangfel
Browse files

restructured grammar

parent d3c2d43f
No related branches found
No related tags found
No related merge requests found
#JSGF V1.0;
grammar restaurant_save_command;
public <restaurant> = <followMe> | <stop> | <ordering>;
public <restaurant> = <followMe> | <stop> | <ordering> | <save>;
<save> = save [[a] location];
<followMe> = (follow me) | (come [(with me) | here]) | (keep up);
<ordering> = ordering;
<stop> = stop [this];
......@@ -4,5 +4,6 @@ grammar restaurant_save_command;
public <restaurant> = [tobi] [please] save ( <deliveryLocations> | <objectCategory> ) [[to | on] [the | my] ( <savePlaceLeft> | <savePlaceRight> )];
<savePlaceLeft> = left;
<savePlaceRight> = right;
<deliveryLocations> = table (one | two | three);
<deliveryLocations> = table <numberOfTable>;
<numberOfTable> = one | two | three;
<objectCategory> = drinks | snacks;
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