]> Creatis software - clitk.git/blob - cmake/gengetopt/parser.h
Added FindGengetopt.cmake which compiles gengetopt if not installed.
[clitk.git] / cmake / gengetopt / parser.h
1
2 /* A Bison parser, made by GNU Bison 2.4.1.  */
3
4 /* Skeleton interface for Bison's Yacc-like parsers in C
5    
6       Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7    Free Software Foundation, Inc.
8    
9    This program is free software: you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation, either version 3 of the License, or
12    (at your option) any later version.
13    
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18    
19    You should have received a copy of the GNU General Public License
20    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
21
22 /* As a special exception, you may create a larger work that contains
23    part or all of the Bison parser skeleton and distribute that work
24    under terms of your choice, so long as that work isn't itself a
25    parser generator using the skeleton or a modified version thereof
26    as a parser skeleton.  Alternatively, if you modify or redistribute
27    the parser skeleton itself, you may (at your option) remove this
28    special exception, which will cause the skeleton and the resulting
29    Bison output files to be licensed under the GNU General Public
30    License without this special exception.
31    
32    This special exception was added by the Free Software Foundation in
33    version 2.2 of Bison.  */
34
35
36 /* Tokens.  */
37 #ifndef YYTOKENTYPE
38 # define YYTOKENTYPE
39    /* Put the tokens into the symbol table, so that GDB and other debuggers
40       know about them.  */
41    enum yytokentype {
42      TOK_PACKAGE = 258,
43      TOK_VERSION = 259,
44      TOK_OPTION = 260,
45      TOK_DEFGROUP = 261,
46      TOK_GROUPOPTION = 262,
47      TOK_DEFMODE = 263,
48      TOK_MODEOPTION = 264,
49      TOK_YES = 265,
50      TOK_NO = 266,
51      TOK_ON = 267,
52      TOK_OFF = 268,
53      TOK_FLAG = 269,
54      TOK_PURPOSE = 270,
55      TOK_DESCRIPTION = 271,
56      TOK_USAGE = 272,
57      TOK_DEFAULT = 273,
58      TOK_GROUP = 274,
59      TOK_GROUPDESC = 275,
60      TOK_MODE = 276,
61      TOK_MODEDESC = 277,
62      TOK_MULTIPLE = 278,
63      TOK_ARGOPTIONAL = 279,
64      TOK_TYPESTR = 280,
65      TOK_SECTION = 281,
66      TOK_DETAILS = 282,
67      TOK_SECTIONDESC = 283,
68      TOK_TEXT = 284,
69      TOK_ARGS = 285,
70      TOK_VALUES = 286,
71      TOK_HIDDEN = 287,
72      TOK_DEPENDON = 288,
73      TOK_STRING = 289,
74      TOK_CHAR = 290,
75      TOK_ARGTYPE = 291,
76      TOK_SIZE = 292
77    };
78 #endif
79 /* Tokens.  */
80 #define TOK_PACKAGE 258
81 #define TOK_VERSION 259
82 #define TOK_OPTION 260
83 #define TOK_DEFGROUP 261
84 #define TOK_GROUPOPTION 262
85 #define TOK_DEFMODE 263
86 #define TOK_MODEOPTION 264
87 #define TOK_YES 265
88 #define TOK_NO 266
89 #define TOK_ON 267
90 #define TOK_OFF 268
91 #define TOK_FLAG 269
92 #define TOK_PURPOSE 270
93 #define TOK_DESCRIPTION 271
94 #define TOK_USAGE 272
95 #define TOK_DEFAULT 273
96 #define TOK_GROUP 274
97 #define TOK_GROUPDESC 275
98 #define TOK_MODE 276
99 #define TOK_MODEDESC 277
100 #define TOK_MULTIPLE 278
101 #define TOK_ARGOPTIONAL 279
102 #define TOK_TYPESTR 280
103 #define TOK_SECTION 281
104 #define TOK_DETAILS 282
105 #define TOK_SECTIONDESC 283
106 #define TOK_TEXT 284
107 #define TOK_ARGS 285
108 #define TOK_VALUES 286
109 #define TOK_HIDDEN 287
110 #define TOK_DEPENDON 288
111 #define TOK_STRING 289
112 #define TOK_CHAR 290
113 #define TOK_ARGTYPE 291
114 #define TOK_SIZE 292
115
116
117
118
119 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
120 typedef union YYSTYPE
121 {
122
123 /* Line 1676 of yacc.c  */
124 #line 148 "../../src/parser.yy"
125
126     char   *str;
127     char    chr;
128     int     argtype;
129     int     boolean;
130     class AcceptedValues *ValueList;
131     struct gengetopt_option *gengetopt_option;
132     struct multiple_size *multiple_size;
133
134
135
136 /* Line 1676 of yacc.c  */
137 #line 138 "../../src/parser.h"
138 } YYSTYPE;
139 # define YYSTYPE_IS_TRIVIAL 1
140 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
141 # define YYSTYPE_IS_DECLARED 1
142 #endif
143
144 extern YYSTYPE yylval;
145
146 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
147 typedef struct YYLTYPE
148 {
149   int first_line;
150   int first_column;
151   int last_line;
152   int last_column;
153 } YYLTYPE;
154 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
155 # define YYLTYPE_IS_DECLARED 1
156 # define YYLTYPE_IS_TRIVIAL 1
157 #endif
158
159 extern YYLTYPE yylloc;
160