fix logic
[personal-kdelibs.git] / khtml / css / parser.h
blob467e1f6eab4cc263c59192ef13d1c0e4f7eb9cf8
1 /* A Bison parser, made by GNU Bison 2.3. */
3 /* Skeleton interface for Bison's Yacc-like parsers in C
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
23 /* As a special exception, you may create a larger work that contains
24 part or all of the Bison parser skeleton and distribute that work
25 under terms of your choice, so long as that work isn't itself a
26 parser generator using the skeleton or a modified version thereof
27 as a parser skeleton. Alternatively, if you modify or redistribute
28 the parser skeleton itself, you may (at your option) remove this
29 special exception, which will cause the skeleton and the resulting
30 Bison output files to be licensed under the GNU General Public
31 License without this special exception.
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
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 UNIMPORTANT_TOK = 258,
43 S = 259,
44 SGML_CD = 260,
45 INCLUDES = 261,
46 DASHMATCH = 262,
47 BEGINSWITH = 263,
48 ENDSWITH = 264,
49 CONTAINS = 265,
50 STRING = 266,
51 IDENT = 267,
52 NTH = 268,
53 HASH = 269,
54 HEXCOLOR = 270,
55 IMPORT_SYM = 271,
56 PAGE_SYM = 272,
57 MEDIA_SYM = 273,
58 FONT_FACE_SYM = 274,
59 CHARSET_SYM = 275,
60 NAMESPACE_SYM = 276,
61 KHTML_RULE_SYM = 277,
62 KHTML_DECLS_SYM = 278,
63 KHTML_VALUE_SYM = 279,
64 KHTML_MEDIAQUERY_SYM = 280,
65 IMPORTANT_SYM = 281,
66 MEDIA_ONLY = 282,
67 MEDIA_NOT = 283,
68 MEDIA_AND = 284,
69 QEMS = 285,
70 EMS = 286,
71 EXS = 287,
72 PXS = 288,
73 CMS = 289,
74 MMS = 290,
75 INS = 291,
76 PTS = 292,
77 PCS = 293,
78 DEGS = 294,
79 RADS = 295,
80 GRADS = 296,
81 MSECS = 297,
82 SECS = 298,
83 HERZ = 299,
84 KHERZ = 300,
85 DPI = 301,
86 DPCM = 302,
87 DIMEN = 303,
88 PERCENTAGE = 304,
89 FLOAT = 305,
90 INTEGER = 306,
91 URI = 307,
92 FUNCTION = 308,
93 NOTFUNCTION = 309,
94 UNICODERANGE = 310
96 #endif
97 /* Tokens. */
98 #define UNIMPORTANT_TOK 258
99 #define S 259
100 #define SGML_CD 260
101 #define INCLUDES 261
102 #define DASHMATCH 262
103 #define BEGINSWITH 263
104 #define ENDSWITH 264
105 #define CONTAINS 265
106 #define STRING 266
107 #define IDENT 267
108 #define NTH 268
109 #define HASH 269
110 #define HEXCOLOR 270
111 #define IMPORT_SYM 271
112 #define PAGE_SYM 272
113 #define MEDIA_SYM 273
114 #define FONT_FACE_SYM 274
115 #define CHARSET_SYM 275
116 #define NAMESPACE_SYM 276
117 #define KHTML_RULE_SYM 277
118 #define KHTML_DECLS_SYM 278
119 #define KHTML_VALUE_SYM 279
120 #define KHTML_MEDIAQUERY_SYM 280
121 #define IMPORTANT_SYM 281
122 #define MEDIA_ONLY 282
123 #define MEDIA_NOT 283
124 #define MEDIA_AND 284
125 #define QEMS 285
126 #define EMS 286
127 #define EXS 287
128 #define PXS 288
129 #define CMS 289
130 #define MMS 290
131 #define INS 291
132 #define PTS 292
133 #define PCS 293
134 #define DEGS 294
135 #define RADS 295
136 #define GRADS 296
137 #define MSECS 297
138 #define SECS 298
139 #define HERZ 299
140 #define KHERZ 300
141 #define DPI 301
142 #define DPCM 302
143 #define DIMEN 303
144 #define PERCENTAGE 304
145 #define FLOAT 305
146 #define INTEGER 306
147 #define URI 307
148 #define FUNCTION 308
149 #define NOTFUNCTION 309
150 #define UNICODERANGE 310
155 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
156 typedef union YYSTYPE
159 CSSRuleImpl *rule;
160 CSSSelector *selector;
161 QList<CSSSelector*> *selectorList;
162 bool ok;
163 MediaListImpl *mediaList;
164 CSSMediaRuleImpl *mediaRule;
165 CSSRuleListImpl *ruleList;
166 ParseString string;
167 float val;
168 int prop_id;
169 unsigned int attribute;
170 unsigned int element;
171 CSSSelector::Relation relation;
172 CSSSelector::Match match;
173 bool b;
174 char tok;
175 Value value;
176 ValueList *valueList;
178 khtml::MediaQuery* mediaQuery;
179 khtml::MediaQueryExp* mediaQueryExp;
180 QList<khtml::MediaQueryExp*>* mediaQueryExpList;
181 khtml::MediaQuery::Restrictor mediaQueryRestrictor;
183 /* Line 1489 of yacc.c. */
185 YYSTYPE;
186 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
187 # define YYSTYPE_IS_DECLARED 1
188 # define YYSTYPE_IS_TRIVIAL 1
189 #endif