Sync with 5.4.0
[deliverable/titan.core.git] / help / info / group.html
CommitLineData
970ed795 1<!--
3abe9331 2 Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
3
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
8 -->
9<html>
10<head>
11<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
12<meta http-equiv="Content-Language" content="en-us">
13<title>group</title>
14</head>
15<body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
16<table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
17 <tr>
18 <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>
19 </tr>
20</table>
21<table border="0" align="right" cellpadding="0" cellspacing="0">
22 <tr>
23 <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
24 <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
25 <td><a href="goto.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
26 <td><a href="hex2bit.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
27 </tr>
28</table>
29<p><br clear="all">
30</p>
31<hr>
32<h1>group</h1>
33<hr align="left" width="75%">
34<p>In the module definitions part, definitions can be collected in named groups.
35<ul>
36 <li>Groups may be nested i.e. groups may contain other groups;</li>
37 <li>grouping is done to aid readability and to add logical structure to the module if required.;</li>
38 <li>groups may have attributes;</li>
39 <li>it is possible to selectively import definitions contained in a group.</li>
40</ul>
41<table border="0" width="100%" bgcolor="#C9C2BB" cellpadding="4">
42 <tr>
43 <td width="100%">
44 <blockquote>
45 <p><u>TITAN specific restriction compared to the standard:</u></p>
46 </blockquote>
47 <ul>
48 <li>
49 <p>&nbsp;The selective import of groups is not implemented. The keyword <a href="module.html"><b><font face="Courier New" color="#003258" size="4">import</font></b></a> is always treated as
50 if it were <b><font face="Courier New" color="#003258" size="4">import all</font></b>.</p>
51 </li>
52 </ul>
53 </td>
54 </tr>
55</table>
56<p>Related keywords:</p>
57<ul>
58 <li><a href="module.html"><b><font face="Courier New" color="#003258" size="4">module</font></b></a></li>
59 <li><a href="with.html"><b><font face="Courier New" color="#003258" size="4">with</font></b></a></li>
60</ul>
61<hr align="left" width="50%">
62<div align="center">
63<center>
64<table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
65 <tr>
66 <td width="100%">
67 <h3 align="center"><font face="Courier New" color="#003258" size="5"><b>group </b></font><i>group_identifier</i><font face="Courier New" color="#003258" size="5"><b>{</b></font>&nbsp;<i>
68 definitions</i> <b><font face="Courier New" color="#003258" size="5">} </font></b>[ <font face="Courier New" color="#003258" size="5"><b>with </b></font><i>attributes</i> ]</h3>
69 </td>
70 </tr>
71</table>
72</center>
73</div>
74<ul>
75 <li>
76 <p>The <font face="Courier New" color="#003258" size="4"><b>group</b></font> keyword introduces the group definition.</p>
77 </li>
78 <li>
79 <p><i>gropu_identifier</i> is the&nbsp;name used to refer to the module. Must begin with a letter, may contain letters, numbers and underscore characters.</p>
80 </li>
81 <li>
82 <p><i>definitions</i> may contain any definition allowed in the <a href="module.html"><font face="Courier New" color="#003258" size="4"><b>module</b></font> </a> definition part.</p>
83 </li>
84 <li>
85 <p><i>attributes:</i> see the keyword <b><font face="Courier New"><a href="with.html">with</a></font></b> for details.</p>
86 </li>
87</ul>
88<hr align="left" width="50%">
89<p><a name="parametrized">Example</a>
90<p><font face="Courier New">group Skupina {<br>
91&nbsp;&nbsp;&nbsp;type enumerated Examplh {pondeli, utery, streda}<br>
92}</font><br>
93<p>The group Skupina contains one type definition (Examplh).</p>
94<hr align="left" width="25%">
95<hr align="left" width="25%">
96<p><a HREF="BNF.html#groupdef">BNF definition</a> of <font face="Courier New"> group</font></p>
97</body>
98</html>
This page took 0.030609 seconds and 5 git commands to generate.