<?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="LOOP (programming language) - Page 9 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=LOOP_(programming_language)&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=LOOP_%28programming_language%29&amp;p=10">3.Next</a>
</p>
<p>instructions:<br/>
* B<sub>0</sub> = { <code>x = 0</code>, <code>inc x</code> }<br/>
* B<sub>1</sub> = B<sub>0</sub>  { <code>x = y</code> }<br/>
* B<sub>2</sub> = B<sub>0</sub>  { <code>dec x</code> }<br/>
* B<sub>3</sub> = B<sub>1</sub>  B<sub>2</sub></p>

<p>For  we define the loop language <b>Li</b> as the smallest set of programs generated by the following rules:</p>

<p>1. Every instruction s ? B<sub>i</sub> is a program in <b>Li</b>.</p>

<p>2. If P and Q are in <b>Li</b>, then the sequential composition<br/>
:<syntaxhighlight lang="python">PQ</syntaxhighlight><br/></p><p>
<a accesskey="1" href="page.php?w=LOOP_(programming_language)&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=LOOP_%28programming_language%29&amp;p=10">3.Next</a>
</p>

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

</card>
</wml>
