Fixed a few issues, everything now works again.
[fail.git] / src / idl / parser / grammar_enum.h
blob5ea17c4280c53e04f36fbf54a9edb7bfea8552a3
1 /*
2 Fail game engine
3 Copyright 2007-2009 Antoine Chavasse <a.chavasse@gmail.com>
5 This file is part of Fail.
7 Fail is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 3
9 as published by the Free Software Foundation.
11 Fail is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef FAIL_IDL_PARSER_GRAMMAR_ENUM_H
20 #define FAIL_IDL_PARSER_GRAMMAR_ENUM_H
22 #include "actions_enum.h"
24 namespace fail { namespace idlparser
26 struct Enum :
27 seq<
28 Padded< KWenum >,
29 ifapply< identifier, NewEnum >,
30 LeftBrace, FailList< identifier, Comma, AddEnumValue >, RightBrace,
31 SemiColon
32 > {};
34 struct EnumRef :
35 seq<
36 apply< NewEnumRef >,
37 FailList< identifier, ColonColon, AddEnumRefComponent >
38 > {};
41 #endif