| 1 |
/* A Bison parser, made by GNU Bison 3.8.2. */ |
| 2 |
|
| 3 |
/* Bison interface for Yacc-like parsers in C |
| 4 |
|
| 5 |
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, |
| 6 |
Inc. |
| 7 |
|
| 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 3 of the License, or |
| 11 |
(at your option) any later version. |
| 12 |
|
| 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. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
| 20 |
|
| 21 |
/* As a special exception, you may create a larger work that contains |
| 22 |
part or all of the Bison parser skeleton and distribute that work |
| 23 |
under terms of your choice, so long as that work isn't itself a |
| 24 |
parser generator using the skeleton or a modified version thereof |
| 25 |
as a parser skeleton. Alternatively, if you modify or redistribute |
| 26 |
the parser skeleton itself, you may (at your option) remove this |
| 27 |
special exception, which will cause the skeleton and the resulting |
| 28 |
Bison output files to be licensed under the GNU General Public |
| 29 |
License without this special exception. |
| 30 |
|
| 31 |
This special exception was added by the Free Software Foundation in |
| 32 |
version 2.2 of Bison. */ |
| 33 |
|
| 34 |
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, |
| 35 |
especially those whose name start with YY_ or yy_. They are |
| 36 |
private implementation details that can be changed or removed. */ |
| 37 |
|
| 38 |
#ifndef YY_KATEDESC_KATE_PARSER_H_INCLUDED |
| 39 |
# define YY_KATEDESC_KATE_PARSER_H_INCLUDED |
| 40 |
/* Debug traces. */ |
| 41 |
#ifndef YYDEBUG |
| 42 |
# define YYDEBUG 0 |
| 43 |
#endif |
| 44 |
#if YYDEBUG |
| 45 |
extern int katedesc_debug; |
| 46 |
#endif |
| 47 |
|
| 48 |
/* Token kinds. */ |
| 49 |
#ifndef YYTOKENTYPE |
| 50 |
# define YYTOKENTYPE |
| 51 |
enum yytokentype |
| 52 |
{ |
| 53 |
YYEMPTY = -2, |
| 54 |
YYEOF = 0, /* "end of file" */ |
| 55 |
YYerror = 256, /* error */ |
| 56 |
YYUNDEF = 257, /* "invalid token" */ |
| 57 |
KATE = 258, /* KATE */ |
| 58 |
DEFS = 259, /* DEFS */ |
| 59 |
LANGUAGE = 260, /* LANGUAGE */ |
| 60 |
COMMENT = 261, /* COMMENT */ |
| 61 |
CATEGORY = 262, /* CATEGORY */ |
| 62 |
DEFINE = 263, /* DEFINE */ |
| 63 |
MACRO = 264, /* MACRO */ |
| 64 |
STYLE = 265, /* STYLE */ |
| 65 |
REGION = 266, /* REGION */ |
| 66 |
CURVE = 267, /* CURVE */ |
| 67 |
TEXT = 268, /* TEXT */ |
| 68 |
BACKGROUND = 269, /* BACKGROUND */ |
| 69 |
COLOR = 270, /* COLOR */ |
| 70 |
POSITION = 271, /* POSITION */ |
| 71 |
SIZE = 272, /* SIZE */ |
| 72 |
DEFAULT = 273, /* DEFAULT */ |
| 73 |
METRIC = 274, /* METRIC */ |
| 74 |
HALIGN = 275, /* HALIGN */ |
| 75 |
VALIGN = 276, /* VALIGN */ |
| 76 |
HLEFT = 277, /* HLEFT */ |
| 77 |
HCENTER = 278, /* HCENTER */ |
| 78 |
HRIGHT = 279, /* HRIGHT */ |
| 79 |
VTOP = 280, /* VTOP */ |
| 80 |
VCENTER = 281, /* VCENTER */ |
| 81 |
VBOTTOM = 282, /* VBOTTOM */ |
| 82 |
POINTS = 283, /* POINTS */ |
| 83 |
EVENT = 284, /* EVENT */ |
| 84 |
STARTS = 285, /* STARTS */ |
| 85 |
ENDS = 286, /* ENDS */ |
| 86 |
AT = 287, /* AT */ |
| 87 |
START = 288, /* START */ |
| 88 |
END = 289, /* END */ |
| 89 |
TIME = 290, /* TIME */ |
| 90 |
DURATION = 291, /* DURATION */ |
| 91 |
ARROW = 292, /* ARROW */ |
| 92 |
FROM = 293, /* FROM */ |
| 93 |
TO = 294, /* TO */ |
| 94 |
MAPPING = 295, /* MAPPING */ |
| 95 |
NONE = 296, /* NONE */ |
| 96 |
FRAME = 297, /* FRAME */ |
| 97 |
MOTION = 298, /* MOTION */ |
| 98 |
BEZIER_CUBIC = 299, /* BEZIER_CUBIC */ |
| 99 |
LINEAR = 300, /* LINEAR */ |
| 100 |
CATMULL_ROM = 301, /* CATMULL_ROM */ |
| 101 |
BSPLINE = 302, /* BSPLINE */ |
| 102 |
STATIC = 303, /* STATIC */ |
| 103 |
SEMANTICS = 304, /* SEMANTICS */ |
| 104 |
EXTERNAL = 305, /* EXTERNAL */ |
| 105 |
INTERNAL = 306, /* INTERNAL */ |
| 106 |
ALIGNMENT = 307, /* ALIGNMENT */ |
| 107 |
RG = 308, /* RG */ |
| 108 |
BA = 309, /* BA */ |
| 109 |
FOR = 310, /* FOR */ |
| 110 |
ALPHA = 311, /* ALPHA */ |
| 111 |
TIMEBASE = 312, /* TIMEBASE */ |
| 112 |
MARKER = 313, /* MARKER */ |
| 113 |
POINTER = 314, /* POINTER */ |
| 114 |
SIMPLE_TIMED_GLYPH_MARKER = 315, /* SIMPLE_TIMED_GLYPH_MARKER */ |
| 115 |
SIMPLE_TIMED_GLYPH_STYLE_MORPH = 316, /* SIMPLE_TIMED_GLYPH_STYLE_MORPH */ |
| 116 |
GLYPH = 317, /* GLYPH */ |
| 117 |
PAUSE = 318, /* PAUSE */ |
| 118 |
IN = 319, /* IN */ |
| 119 |
MORPH = 320, /* MORPH */ |
| 120 |
SECONDARY = 321, /* SECONDARY */ |
| 121 |
PATH = 322, /* PATH */ |
| 122 |
SECTION = 323, /* SECTION */ |
| 123 |
PERIODIC = 324, /* PERIODIC */ |
| 124 |
DIRECTIONALITY = 325, /* DIRECTIONALITY */ |
| 125 |
L2R_T2B = 326, /* L2R_T2B */ |
| 126 |
R2L_T2B = 327, /* R2L_T2B */ |
| 127 |
T2B_R2L = 328, /* T2B_R2L */ |
| 128 |
T2B_L2R = 329, /* T2B_L2R */ |
| 129 |
BITMAP = 330, /* BITMAP */ |
| 130 |
PALETTE = 331, /* PALETTE */ |
| 131 |
COLORS = 332, /* COLORS */ |
| 132 |
FONT = 333, /* FONT */ |
| 133 |
RANGE = 334, /* RANGE */ |
| 134 |
FIRST = 335, /* FIRST */ |
| 135 |
LAST = 336, /* LAST */ |
| 136 |
CODE = 337, /* CODE */ |
| 137 |
POINT = 338, /* POINT */ |
| 138 |
USER = 339, /* USER */ |
| 139 |
SOURCE = 340, /* SOURCE */ |
| 140 |
PNG = 341, /* PNG */ |
| 141 |
DRAW = 342, /* DRAW */ |
| 142 |
VISIBLE = 343, /* VISIBLE */ |
| 143 |
ID = 344, /* ID */ |
| 144 |
BOLD = 345, /* BOLD */ |
| 145 |
ITALICS = 346, /* ITALICS */ |
| 146 |
UNDERLINE = 347, /* UNDERLINE */ |
| 147 |
STRIKE = 348, /* STRIKE */ |
| 148 |
JUSTIFY = 349, /* JUSTIFY */ |
| 149 |
BASE = 350, /* BASE */ |
| 150 |
OFFSET = 351, /* OFFSET */ |
| 151 |
GRANULE = 352, /* GRANULE */ |
| 152 |
RATE = 353, /* RATE */ |
| 153 |
SHIFT = 354, /* SHIFT */ |
| 154 |
WIDTH = 355, /* WIDTH */ |
| 155 |
HEIGHT = 356, /* HEIGHT */ |
| 156 |
CANVAS = 357, /* CANVAS */ |
| 157 |
LEFT = 358, /* LEFT */ |
| 158 |
TOP = 359, /* TOP */ |
| 159 |
RIGHT = 360, /* RIGHT */ |
| 160 |
BOTTOM = 361, /* BOTTOM */ |
| 161 |
MARGIN = 362, /* MARGIN */ |
| 162 |
MARGINS = 363, /* MARGINS */ |
| 163 |
HORIZONTAL = 364, /* HORIZONTAL */ |
| 164 |
VERTICAL = 365, /* VERTICAL */ |
| 165 |
CLIP = 366, /* CLIP */ |
| 166 |
PRE = 367, /* PRE */ |
| 167 |
MARKUP = 368, /* MARKUP */ |
| 168 |
LOCAL = 369, /* LOCAL */ |
| 169 |
WRAP = 370, /* WRAP */ |
| 170 |
WORD = 371, /* WORD */ |
| 171 |
META = 372, /* META */ |
| 172 |
NUMBER = 373, /* NUMBER */ |
| 173 |
UNUMBER = 374, /* UNUMBER */ |
| 174 |
STRING = 375, /* STRING */ |
| 175 |
FLOAT = 376, /* FLOAT */ |
| 176 |
COLORSPEC = 377, /* COLORSPEC */ |
| 177 |
IDENTIFIER = 378, /* IDENTIFIER */ |
| 178 |
MACRO_BODY = 379 /* MACRO_BODY */ |
| 179 |
}; |
| 180 |
typedef enum yytokentype yytoken_kind_t; |
| 181 |
#endif |
| 182 |
/* Token kinds. */ |
| 183 |
#define YYEMPTY -2 |
| 184 |
#define YYEOF 0 |
| 185 |
#define YYerror 256 |
| 186 |
#define YYUNDEF 257 |
| 187 |
#define KATE 258 |
| 188 |
#define DEFS 259 |
| 189 |
#define LANGUAGE 260 |
| 190 |
#define COMMENT 261 |
| 191 |
#define CATEGORY 262 |
| 192 |
#define DEFINE 263 |
| 193 |
#define MACRO 264 |
| 194 |
#define STYLE 265 |
| 195 |
#define REGION 266 |
| 196 |
#define CURVE 267 |
| 197 |
#define TEXT 268 |
| 198 |
#define BACKGROUND 269 |
| 199 |
#define COLOR 270 |
| 200 |
#define POSITION 271 |
| 201 |
#define SIZE 272 |
| 202 |
#define DEFAULT 273 |
| 203 |
#define METRIC 274 |
| 204 |
#define HALIGN 275 |
| 205 |
#define VALIGN 276 |
| 206 |
#define HLEFT 277 |
| 207 |
#define HCENTER 278 |
| 208 |
#define HRIGHT 279 |
| 209 |
#define VTOP 280 |
| 210 |
#define VCENTER 281 |
| 211 |
#define VBOTTOM 282 |
| 212 |
#define POINTS 283 |
| 213 |
#define EVENT 284 |
| 214 |
#define STARTS 285 |
| 215 |
#define ENDS 286 |
| 216 |
#define AT 287 |
| 217 |
#define START 288 |
| 218 |
#define END 289 |
| 219 |
#define TIME 290 |
| 220 |
#define DURATION 291 |
| 221 |
#define ARROW 292 |
| 222 |
#define FROM 293 |
| 223 |
#define TO 294 |
| 224 |
#define MAPPING 295 |
| 225 |
#define NONE 296 |
| 226 |
#define FRAME 297 |
| 227 |
#define MOTION 298 |
| 228 |
#define BEZIER_CUBIC 299 |
| 229 |
#define LINEAR 300 |
| 230 |
#define CATMULL_ROM 301 |
| 231 |
#define BSPLINE 302 |
| 232 |
#define STATIC 303 |
| 233 |
#define SEMANTICS 304 |
| 234 |
#define EXTERNAL 305 |
| 235 |
#define INTERNAL 306 |
| 236 |
#define ALIGNMENT 307 |
| 237 |
#define RG 308 |
| 238 |
#define BA 309 |
| 239 |
#define FOR 310 |
| 240 |
#define ALPHA 311 |
| 241 |
#define TIMEBASE 312 |
| 242 |
#define MARKER 313 |
| 243 |
#define POINTER 314 |
| 244 |
#define SIMPLE_TIMED_GLYPH_MARKER 315 |
| 245 |
#define SIMPLE_TIMED_GLYPH_STYLE_MORPH 316 |
| 246 |
#define GLYPH 317 |
| 247 |
#define PAUSE 318 |
| 248 |
#define IN 319 |
| 249 |
#define MORPH 320 |
| 250 |
#define SECONDARY 321 |
| 251 |
#define PATH 322 |
| 252 |
#define SECTION 323 |
| 253 |
#define PERIODIC 324 |
| 254 |
#define DIRECTIONALITY 325 |
| 255 |
#define L2R_T2B 326 |
| 256 |
#define R2L_T2B 327 |
| 257 |
#define T2B_R2L 328 |
| 258 |
#define T2B_L2R 329 |
| 259 |
#define BITMAP 330 |
| 260 |
#define PALETTE 331 |
| 261 |
#define COLORS 332 |
| 262 |
#define FONT 333 |
| 263 |
#define RANGE 334 |
| 264 |
#define FIRST 335 |
| 265 |
#define LAST 336 |
| 266 |
#define CODE 337 |
| 267 |
#define POINT 338 |
| 268 |
#define USER 339 |
| 269 |
#define SOURCE 340 |
| 270 |
#define PNG 341 |
| 271 |
#define DRAW 342 |
| 272 |
#define VISIBLE 343 |
| 273 |
#define ID 344 |
| 274 |
#define BOLD 345 |
| 275 |
#define ITALICS 346 |
| 276 |
#define UNDERLINE 347 |
| 277 |
#define STRIKE 348 |
| 278 |
#define JUSTIFY 349 |
| 279 |
#define BASE 350 |
| 280 |
#define OFFSET 351 |
| 281 |
#define GRANULE 352 |
| 282 |
#define RATE 353 |
| 283 |
#define SHIFT 354 |
| 284 |
#define WIDTH 355 |
| 285 |
#define HEIGHT 356 |
| 286 |
#define CANVAS 357 |
| 287 |
#define LEFT 358 |
| 288 |
#define TOP 359 |
| 289 |
#define RIGHT 360 |
| 290 |
#define BOTTOM 361 |
| 291 |
#define MARGIN 362 |
| 292 |
#define MARGINS 363 |
| 293 |
#define HORIZONTAL 364 |
| 294 |
#define VERTICAL 365 |
| 295 |
#define CLIP 366 |
| 296 |
#define PRE 367 |
| 297 |
#define MARKUP 368 |
| 298 |
#define LOCAL 369 |
| 299 |
#define WRAP 370 |
| 300 |
#define WORD 371 |
| 301 |
#define META 372 |
| 302 |
#define NUMBER 373 |
| 303 |
#define UNUMBER 374 |
| 304 |
#define STRING 375 |
| 305 |
#define FLOAT 376 |
| 306 |
#define COLORSPEC 377 |
| 307 |
#define IDENTIFIER 378 |
| 308 |
#define MACRO_BODY 379 |
| 309 |
|
| 310 |
/* Value type. */ |
| 311 |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
| 312 |
union YYSTYPE |
| 313 |
{ |
| 314 |
#line 2200 "kate_parser.y" |
| 315 |
|
| 316 |
int number; |
| 317 |
unsigned int unumber; |
| 318 |
kate_float fp; |
| 319 |
const char *string; |
| 320 |
char *dynstring; |
| 321 |
kate_style *style; |
| 322 |
kate_region *region; |
| 323 |
kate_curve *curve; |
| 324 |
uint32_t color; |
| 325 |
|
| 326 |
#line 327 "kate_parser.h" |
| 327 |
|
| 328 |
}; |
| 329 |
typedef union YYSTYPE YYSTYPE; |
| 330 |
# define YYSTYPE_IS_TRIVIAL 1 |
| 331 |
# define YYSTYPE_IS_DECLARED 1 |
| 332 |
#endif |
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
int katedesc_parse (void); |
| 338 |
|
| 339 |
|
| 340 |
#endif /* !YY_KATEDESC_KATE_PARSER_H_INCLUDED */ |