Debian Codegraph @

help/info/repeat.html

raw symbols SCIP
1 <!--
2 Copyright (c) 2000-2021 Ericsson Telecom AB
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License v2.0
5 which accompanies this distribution, and is available at
6 https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7
8 Contributors:
9 Baji, Laszlo
10 Balasko, Jeno
11 Farkas, Laszlo
12 Gecse, Roland
13 Kovacs, Ferenc
14 Szabados, Kristof
15 -->
16 <html>
17 <head>
18 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
19 <meta http-equiv="Content-Language" content="en-us">
20 <title>repeat</title>
21 </head>
22 <body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
23 <table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
24 <tr>
25 <td width=105 height=40><a href="https://projects.eclipse.org/projects/tools.titan"><img src="../images/titan_transparent.gif" border=0 width=105 height=40 align="left" alt="Titan"></a></td>
26 </tr>
27 </table>
28 <table border="0" align="right" cellpadding="0" cellspacing="0">
29 <tr>
30 <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
31 <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
32 <td><a href="remove_bom.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
33 <td><a href="replace.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
34 </tr>
35 </table>
36 <p><br clear="all">
37 </p>
38 <hr>
39 <h1>repeat</h1>
40 <hr align="left" width="75%">
41 <p>The keyword is only used in conjunction with the keyword <font face="Courier New"><b>alt</b></font> to request another snapshot.
42 <p>The repeat statement can appear as the last statement in the statement block of the alternative. When execution reaches the repeat statement, the execution continues with the evaluation of the
43 innermost alt statement (after a new snapshot has been taken).
44 <hr align="left" width="50%">
45 <p>Related keyword:</p>
46 <ul>
47 <li><a href="alt.html"><b><font face="Courier New" color="#003258" size="4">alt</font></b></a></li>
48 </ul>
49 <hr align="left" width="50%">
50 <div align="center">
51 <center>
52 <table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
53 <tr>
54 <td width="100%">
55 <h3 align="center"><font face="Courier New" color="#003258" size="5"><b>repeat</b></font></h3>
56 </td>
57 </tr>
58 </table>
59 </center>
60 </div>
61 <hr align="left" width="25%">
62 <P>Example:
63 <hr align="left" width="25%">
64 <P><code> alt {<br>
65 [] PCO.receive(integer:?) { /* do something and re-iterate */ repeat }<br>
66 [] any port.receive { /* do something here, too */ }<br>
67 </code>
68 <P>The repeat statement keeps on executing the above alt until something else than an integer number arrives on some port of the underlying component (provided no defaults are active).
69 <hr align="left" width="25%">
70 <p><a HREF="BNF.html#repeatstatement">BNF definition</a> of <font face="Courier New">repeat</font></p>
71 </body>
72 </html>