More grammar work, all idl files are now parsed entirely again.
[fail.git] / src / idl / parser / grammar_enum.h
blob6ad6fc76b90cf1e421e21375135f653ebe3fd221
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 namespace fail { namespace idlparser
24 struct Enum :
25 seq<
26 Padded< KWenum >,
27 identifier,
28 LeftBrace, pegtl::list< identifier, Comma >, RightBrace,
29 SemiColon
30 > {};
32 struct EnumRef : pegtl::list< identifier, ColonColon > {};
35 #endif