Skip to content
Snippets Groups Projects
Commit 74319462 authored by Markus Vieth's avatar Markus Vieth
Browse files

Change grammar for task 5

parent 1dd9135d
Branches
No related tags found
No related merge requests found
......@@ -4,8 +4,11 @@ grammar task5;
public <sentence> = [<robot>] [please] <command> <location>;
<robot> = (tiago|tobi);
<command> = (((bring | take) me to) | (where (is | can i find )) | i want to go to);
<location> = (the <bathroom> | table <table> | the <cashRegister>);
<command> = (((bring | take) me to) | (where (is | (can i find))) | (i want to go to));
<location> = (the <bathroom> | <table> | the <cashRegister>);
<bathroom> = (bathroom | toilet);
<cashRegister> = (cashier | ([cash] register));
<table> = (a|b|c);
<table> = (<tableA> | <tableB> | <tableC>);
<tableA> = (table a);
<tableB> = (table b);
<tableC> = ((table c) | ([an] empty table));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment