girwriter: Don't use constructor tag with structs
[vala-lang.git] / doc / vala / enums.xml
blobc58d7a4c99e235d0c0e20f3e1cb0ca6a7f9281e9
1 <?xml version="1.0"?>
2 <section id="enums">
3         <h>Enums</h>
4         <p>Enumerated types represent a set of constant values.</p>
5         <section id="declaration">
6                 <h>Enum declarations</h>
7                 <blockquote>
8 enum-declaration:
9         [ access-modifier ] <l>enum</l> qualified-identifier <l>{</l> [ enum-members ] <l>}</l>
11 enum-members:
12         enum-values [ <l>;</l> [ enum-methods ] ]
14 enum-values:
15         enum-value [ <l>,</l> enum-values ]
17 enum-value:
18         identifier [ <l>=</l> expression ]
20 enum-methods:
21         method-declaration [ enum-methods ]
22 </blockquote>
23         </section>
24 </section>