Skip to content
Snippets Groups Projects
restaurant.jsgf 803 B
Newer Older
  • Learn to ignore specific revisions
  • #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>;
    
    Christian Klarhorst's avatar
    Christian Klarhorst committed
    <objectCategory> = drinks | snacks;
    <objects> = <drinks> | <snacks>;
    
    Christian Klarhorst's avatar
    Christian Klarhorst committed
    <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>)];