<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Terminal and nonterminal symbols - Page 3 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Terminal_and_nonterminal_symbols&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Terminal_and_nonterminal_symbols&amp;p=4">3.Next</a>
</p>
<p>rules successively to a <a href="page.php?w=Formal_grammar">start symbol</a> might not terminate, but if it terminates when there is no more production rule can be applied, the output string will consist only of terminal symbols.</p>

<p>For example, consider a grammar defined by two rules. In this grammar, the symbol <code>?</code> is a terminal symbol and <code>?</code> is both a nonterminal symbol and the start symbol. The production rules for creating strings are as follows:</p>

<p>
# The symbol <code>?</code> can become <code>?</code><code>?</code></p><p>
<a accesskey="1" href="page.php?w=Terminal_and_nonterminal_symbols&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Terminal_and_nonterminal_symbols&amp;p=4">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
