| ## Grammar for Templatic Generation Tasks dataset - Jan-08-2025 | |
| Special symbol meanings: | |
| "::=" means "defined as" | |
| "<xx>" means that xx is a non-terminal | |
| "|" is used to separate production choices for a non-terminal | |
| [ <abc> ] means that <abc> is optional | |
| a literal tag is shown as an uppercase word: Q, A, etc. | |
| <tgt> ::= <example> <cue> | |
| <example> ::= Q <question> A <answer> | |
| <cue> ::= Q <question> A | |
| <question> ::= <con_delim seq> | |
| <answer> ::= <con_delim seq> | |
| <con_delim seq> ::= <constituent list> [ <delimiter> ] | |
| <constituent list> ::= <constituent> [ <delimiter> <constituent list> ] | |
| <delimiter> ::= <symbol> [ <delimiter> ] | |
| <constituent> ::= <symbol> [ <constituent> ] | |
| Additional constraints: | |
| - no symbol can be repeated within the <question>, within the <answer>, or within the <cue>. | |
| - symbols in the <constitents> of the <cue> cannot overlap with any symbols in the <constituents> of the <question>. |