File: kate_parser.h

package info (click to toggle)
libkate 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,680 kB
  • sloc: ansic: 11,059; sh: 4,930; yacc: 2,358; python: 767; javascript: 407; lex: 363; makefile: 263
file content (340 lines) | stat: -rw-r--r-- 11,207 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
/* A Bison parser, made by GNU Bison 3.8.2.  */

/* Bison interface for Yacc-like parsers in C

   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
   Inc.

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
   especially those whose name start with YY_ or yy_.  They are
   private implementation details that can be changed or removed.  */

#ifndef YY_KATEDESC_KATE_PARSER_H_INCLUDED
# define YY_KATEDESC_KATE_PARSER_H_INCLUDED
/* Debug traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int katedesc_debug;
#endif

/* Token kinds.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
  enum yytokentype
  {
    YYEMPTY = -2,
    YYEOF = 0,                     /* "end of file"  */
    YYerror = 256,                 /* error  */
    YYUNDEF = 257,                 /* "invalid token"  */
    KATE = 258,                    /* KATE  */
    DEFS = 259,                    /* DEFS  */
    LANGUAGE = 260,                /* LANGUAGE  */
    COMMENT = 261,                 /* COMMENT  */
    CATEGORY = 262,                /* CATEGORY  */
    DEFINE = 263,                  /* DEFINE  */
    MACRO = 264,                   /* MACRO  */
    STYLE = 265,                   /* STYLE  */
    REGION = 266,                  /* REGION  */
    CURVE = 267,                   /* CURVE  */
    TEXT = 268,                    /* TEXT  */
    BACKGROUND = 269,              /* BACKGROUND  */
    COLOR = 270,                   /* COLOR  */
    POSITION = 271,                /* POSITION  */
    SIZE = 272,                    /* SIZE  */
    DEFAULT = 273,                 /* DEFAULT  */
    METRIC = 274,                  /* METRIC  */
    HALIGN = 275,                  /* HALIGN  */
    VALIGN = 276,                  /* VALIGN  */
    HLEFT = 277,                   /* HLEFT  */
    HCENTER = 278,                 /* HCENTER  */
    HRIGHT = 279,                  /* HRIGHT  */
    VTOP = 280,                    /* VTOP  */
    VCENTER = 281,                 /* VCENTER  */
    VBOTTOM = 282,                 /* VBOTTOM  */
    POINTS = 283,                  /* POINTS  */
    EVENT = 284,                   /* EVENT  */
    STARTS = 285,                  /* STARTS  */
    ENDS = 286,                    /* ENDS  */
    AT = 287,                      /* AT  */
    START = 288,                   /* START  */
    END = 289,                     /* END  */
    TIME = 290,                    /* TIME  */
    DURATION = 291,                /* DURATION  */
    ARROW = 292,                   /* ARROW  */
    FROM = 293,                    /* FROM  */
    TO = 294,                      /* TO  */
    MAPPING = 295,                 /* MAPPING  */
    NONE = 296,                    /* NONE  */
    FRAME = 297,                   /* FRAME  */
    MOTION = 298,                  /* MOTION  */
    BEZIER_CUBIC = 299,            /* BEZIER_CUBIC  */
    LINEAR = 300,                  /* LINEAR  */
    CATMULL_ROM = 301,             /* CATMULL_ROM  */
    BSPLINE = 302,                 /* BSPLINE  */
    STATIC = 303,                  /* STATIC  */
    SEMANTICS = 304,               /* SEMANTICS  */
    EXTERNAL = 305,                /* EXTERNAL  */
    INTERNAL = 306,                /* INTERNAL  */
    ALIGNMENT = 307,               /* ALIGNMENT  */
    RG = 308,                      /* RG  */
    BA = 309,                      /* BA  */
    FOR = 310,                     /* FOR  */
    ALPHA = 311,                   /* ALPHA  */
    TIMEBASE = 312,                /* TIMEBASE  */
    MARKER = 313,                  /* MARKER  */
    POINTER = 314,                 /* POINTER  */
    SIMPLE_TIMED_GLYPH_MARKER = 315, /* SIMPLE_TIMED_GLYPH_MARKER  */
    SIMPLE_TIMED_GLYPH_STYLE_MORPH = 316, /* SIMPLE_TIMED_GLYPH_STYLE_MORPH  */
    GLYPH = 317,                   /* GLYPH  */
    PAUSE = 318,                   /* PAUSE  */
    IN = 319,                      /* IN  */
    MORPH = 320,                   /* MORPH  */
    SECONDARY = 321,               /* SECONDARY  */
    PATH = 322,                    /* PATH  */
    SECTION = 323,                 /* SECTION  */
    PERIODIC = 324,                /* PERIODIC  */
    DIRECTIONALITY = 325,          /* DIRECTIONALITY  */
    L2R_T2B = 326,                 /* L2R_T2B  */
    R2L_T2B = 327,                 /* R2L_T2B  */
    T2B_R2L = 328,                 /* T2B_R2L  */
    T2B_L2R = 329,                 /* T2B_L2R  */
    BITMAP = 330,                  /* BITMAP  */
    PALETTE = 331,                 /* PALETTE  */
    COLORS = 332,                  /* COLORS  */
    FONT = 333,                    /* FONT  */
    RANGE = 334,                   /* RANGE  */
    FIRST = 335,                   /* FIRST  */
    LAST = 336,                    /* LAST  */
    CODE = 337,                    /* CODE  */
    POINT = 338,                   /* POINT  */
    USER = 339,                    /* USER  */
    SOURCE = 340,                  /* SOURCE  */
    PNG = 341,                     /* PNG  */
    DRAW = 342,                    /* DRAW  */
    VISIBLE = 343,                 /* VISIBLE  */
    ID = 344,                      /* ID  */
    BOLD = 345,                    /* BOLD  */
    ITALICS = 346,                 /* ITALICS  */
    UNDERLINE = 347,               /* UNDERLINE  */
    STRIKE = 348,                  /* STRIKE  */
    JUSTIFY = 349,                 /* JUSTIFY  */
    BASE = 350,                    /* BASE  */
    OFFSET = 351,                  /* OFFSET  */
    GRANULE = 352,                 /* GRANULE  */
    RATE = 353,                    /* RATE  */
    SHIFT = 354,                   /* SHIFT  */
    WIDTH = 355,                   /* WIDTH  */
    HEIGHT = 356,                  /* HEIGHT  */
    CANVAS = 357,                  /* CANVAS  */
    LEFT = 358,                    /* LEFT  */
    TOP = 359,                     /* TOP  */
    RIGHT = 360,                   /* RIGHT  */
    BOTTOM = 361,                  /* BOTTOM  */
    MARGIN = 362,                  /* MARGIN  */
    MARGINS = 363,                 /* MARGINS  */
    HORIZONTAL = 364,              /* HORIZONTAL  */
    VERTICAL = 365,                /* VERTICAL  */
    CLIP = 366,                    /* CLIP  */
    PRE = 367,                     /* PRE  */
    MARKUP = 368,                  /* MARKUP  */
    LOCAL = 369,                   /* LOCAL  */
    WRAP = 370,                    /* WRAP  */
    WORD = 371,                    /* WORD  */
    META = 372,                    /* META  */
    NUMBER = 373,                  /* NUMBER  */
    UNUMBER = 374,                 /* UNUMBER  */
    STRING = 375,                  /* STRING  */
    FLOAT = 376,                   /* FLOAT  */
    COLORSPEC = 377,               /* COLORSPEC  */
    IDENTIFIER = 378,              /* IDENTIFIER  */
    MACRO_BODY = 379               /* MACRO_BODY  */
  };
  typedef enum yytokentype yytoken_kind_t;
#endif
/* Token kinds.  */
#define YYEMPTY -2
#define YYEOF 0
#define YYerror 256
#define YYUNDEF 257
#define KATE 258
#define DEFS 259
#define LANGUAGE 260
#define COMMENT 261
#define CATEGORY 262
#define DEFINE 263
#define MACRO 264
#define STYLE 265
#define REGION 266
#define CURVE 267
#define TEXT 268
#define BACKGROUND 269
#define COLOR 270
#define POSITION 271
#define SIZE 272
#define DEFAULT 273
#define METRIC 274
#define HALIGN 275
#define VALIGN 276
#define HLEFT 277
#define HCENTER 278
#define HRIGHT 279
#define VTOP 280
#define VCENTER 281
#define VBOTTOM 282
#define POINTS 283
#define EVENT 284
#define STARTS 285
#define ENDS 286
#define AT 287
#define START 288
#define END 289
#define TIME 290
#define DURATION 291
#define ARROW 292
#define FROM 293
#define TO 294
#define MAPPING 295
#define NONE 296
#define FRAME 297
#define MOTION 298
#define BEZIER_CUBIC 299
#define LINEAR 300
#define CATMULL_ROM 301
#define BSPLINE 302
#define STATIC 303
#define SEMANTICS 304
#define EXTERNAL 305
#define INTERNAL 306
#define ALIGNMENT 307
#define RG 308
#define BA 309
#define FOR 310
#define ALPHA 311
#define TIMEBASE 312
#define MARKER 313
#define POINTER 314
#define SIMPLE_TIMED_GLYPH_MARKER 315
#define SIMPLE_TIMED_GLYPH_STYLE_MORPH 316
#define GLYPH 317
#define PAUSE 318
#define IN 319
#define MORPH 320
#define SECONDARY 321
#define PATH 322
#define SECTION 323
#define PERIODIC 324
#define DIRECTIONALITY 325
#define L2R_T2B 326
#define R2L_T2B 327
#define T2B_R2L 328
#define T2B_L2R 329
#define BITMAP 330
#define PALETTE 331
#define COLORS 332
#define FONT 333
#define RANGE 334
#define FIRST 335
#define LAST 336
#define CODE 337
#define POINT 338
#define USER 339
#define SOURCE 340
#define PNG 341
#define DRAW 342
#define VISIBLE 343
#define ID 344
#define BOLD 345
#define ITALICS 346
#define UNDERLINE 347
#define STRIKE 348
#define JUSTIFY 349
#define BASE 350
#define OFFSET 351
#define GRANULE 352
#define RATE 353
#define SHIFT 354
#define WIDTH 355
#define HEIGHT 356
#define CANVAS 357
#define LEFT 358
#define TOP 359
#define RIGHT 360
#define BOTTOM 361
#define MARGIN 362
#define MARGINS 363
#define HORIZONTAL 364
#define VERTICAL 365
#define CLIP 366
#define PRE 367
#define MARKUP 368
#define LOCAL 369
#define WRAP 370
#define WORD 371
#define META 372
#define NUMBER 373
#define UNUMBER 374
#define STRING 375
#define FLOAT 376
#define COLORSPEC 377
#define IDENTIFIER 378
#define MACRO_BODY 379

/* Value type.  */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 2200 "kate_parser.y"

  int number;
  unsigned int unumber;
  kate_float fp;
  const char *string;
  char *dynstring;
  kate_style *style;
  kate_region *region;
  kate_curve *curve;
  uint32_t color;

#line 327 "kate_parser.h"

};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif




int katedesc_parse (void);


#endif /* !YY_KATEDESC_KATE_PARSER_H_INCLUDED  */