From: Jürg Billeter Date: Tue, 3 Jun 2008 19:14:22 +0000 (+0000) Subject: Document enum syntax, based on patch by Phil Housley X-Git-Tag: VALA_0_3_3~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea85ff9daf78629d60a0db63702cbbdbf0dd3717;p=thirdparty%2Fvala.git Document enum syntax, based on patch by Phil Housley 2008-06-03 Jürg Billeter * doc/vala/enums.xml: Document enum syntax, based on patch by Phil Housley svn path=/trunk/; revision=1552 --- diff --git a/ChangeLog b/ChangeLog index af914600d..91befdbb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-06-03 Jürg Billeter + + * doc/vala/enums.xml: + + Document enum syntax, based on patch by Phil Housley + 2008-06-03 Jürg Billeter * doc/vala/methods.xml: diff --git a/doc/vala/enums.xml b/doc/vala/enums.xml index 357514619..c58d7a4c9 100644 --- a/doc/vala/enums.xml +++ b/doc/vala/enums.xml @@ -1,17 +1,25 @@
Enums +

Enumerated types represent a set of constant values.

Enum declarations -

Documentation

-
-
- Enum members -

Documentation

-
-
- Methods -

Documentation

+
+enum-declaration: + [ access-modifier ] enum qualified-identifier { [ enum-members ] } + +enum-members: + enum-values [ ; [ enum-methods ] ] + +enum-values: + enum-value [ , enum-values ] + +enum-value: + identifier [ = expression ] + +enum-methods: + method-declaration [ enum-methods ] +