box&rdquo;
with pattern &ldquo;put A in B&rdquo;.
</p>
<p>
To keep things simple, we will <i>only</i> enable this loose matching
for nonterminals that occur at the very end of a pattern.
To be able to properly match the example above, we need two separate patterns:
</p>
<ul>
<li>Pattern &ldquo;put A in B&rdquo; will match
the valid command <i>put coin in box</i>,
as well as the invalid commands
<i>put coin in booox</i> and <i>put coin in</i>.
Note that the nonterminal A only matches valid tags
(in this case