2008-06-03 Jürg Billeter <j@bitron.ch>
* doc/vala/enums.xml:
Document enum syntax, based on patch by Phil Housley
svn path=/trunk/; revision=1552
+2008-06-03 Jürg Billeter <j@bitron.ch>
+
+ * doc/vala/enums.xml:
+
+ Document enum syntax, based on patch by Phil Housley
+
2008-06-03 Jürg Billeter <j@bitron.ch>
* doc/vala/methods.xml:
<?xml version="1.0"?>
<section id="enums">
<h>Enums</h>
+ <p>Enumerated types represent a set of constant values.</p>
<section id="declaration">
<h>Enum declarations</h>
- <p>Documentation</p>
- </section>
- <section id="members">
- <h>Enum members</h>
- <p>Documentation</p>
- </section>
- <section id="methods">
- <h>Methods</h>
- <p>Documentation</p>
+ <blockquote>
+enum-declaration:
+ [ access-modifier ] <l>enum</l> qualified-identifier <l>{</l> [ enum-members ] <l>}</l>
+
+enum-members:
+ enum-values [ <l>;</l> [ enum-methods ] ]
+
+enum-values:
+ enum-value [ <l>,</l> enum-values ]
+
+enum-value:
+ identifier [ <l>=</l> expression ]
+
+enum-methods:
+ method-declaration [ enum-methods ]
+</blockquote>
</section>
</section>