|
Packit Service |
50ad14 |
/* A Bison parser, made by GNU Bison 3.0.4.0.14.8bf2. */
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/* Bison interface for Yacc-like parsers in C
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
This program is free software: you can redistribute it and/or modify
|
|
Packit Service |
50ad14 |
it under the terms of the GNU General Public License as published by
|
|
Packit Service |
50ad14 |
the Free Software Foundation, either version 3 of the License, or
|
|
Packit Service |
50ad14 |
(at your option) any later version.
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
This program is distributed in the hope that it will be useful,
|
|
Packit Service |
50ad14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
50ad14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
50ad14 |
GNU General Public License for more details.
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
You should have received a copy of the GNU General Public License
|
|
Packit Service |
50ad14 |
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/* As a special exception, you may create a larger work that contains
|
|
Packit Service |
50ad14 |
part or all of the Bison parser skeleton and distribute that work
|
|
Packit Service |
50ad14 |
under terms of your choice, so long as that work isn't itself a
|
|
Packit Service |
50ad14 |
parser generator using the skeleton or a modified version thereof
|
|
Packit Service |
50ad14 |
as a parser skeleton. Alternatively, if you modify or redistribute
|
|
Packit Service |
50ad14 |
the parser skeleton itself, you may (at your option) remove this
|
|
Packit Service |
50ad14 |
special exception, which will cause the skeleton and the resulting
|
|
Packit Service |
50ad14 |
Bison output files to be licensed under the GNU General Public
|
|
Packit Service |
50ad14 |
License without this special exception.
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
This special exception was added by the Free Software Foundation in
|
|
Packit Service |
50ad14 |
version 2.2 of Bison. */
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#ifndef YY_YY_PARSER_H_INCLUDED
|
|
Packit Service |
50ad14 |
# define YY_YY_PARSER_H_INCLUDED
|
|
Packit Service |
50ad14 |
/* Debug traces. */
|
|
Packit Service |
50ad14 |
#ifndef YYDEBUG
|
|
Packit Service |
50ad14 |
# define YYDEBUG 1
|
|
Packit Service |
50ad14 |
#endif
|
|
Packit Service |
50ad14 |
#if YYDEBUG
|
|
Packit Service |
50ad14 |
extern int yydebug;
|
|
Packit Service |
50ad14 |
#endif
|
|
Packit Service |
50ad14 |
/* "%code requires" blocks. */
|
|
Packit Service |
50ad14 |
#line 27 "parser.y" /* yacc.c:1909 */
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#include "keymap.h"
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#ifndef STRDATA_STRUCT
|
|
Packit Service |
50ad14 |
#define STRDATA_STRUCT
|
|
Packit Service |
50ad14 |
#define MAX_PARSER_STRING 512
|
|
Packit Service |
50ad14 |
struct strdata {
|
|
Packit Service |
50ad14 |
unsigned int len;
|
|
Packit Service |
50ad14 |
unsigned char data[MAX_PARSER_STRING];
|
|
Packit Service |
50ad14 |
};
|
|
Packit Service |
50ad14 |
#endif
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#line 57 "parser.h" /* yacc.c:1909 */
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/* Token type. */
|
|
Packit Service |
50ad14 |
#ifndef YYTOKENTYPE
|
|
Packit Service |
50ad14 |
# define YYTOKENTYPE
|
|
Packit Service |
50ad14 |
enum yytokentype
|
|
Packit Service |
50ad14 |
{
|
|
Packit Service |
50ad14 |
EOL = 258,
|
|
Packit Service |
50ad14 |
NUMBER = 259,
|
|
Packit Service |
50ad14 |
LITERAL = 260,
|
|
Packit Service |
50ad14 |
CHARSET = 261,
|
|
Packit Service |
50ad14 |
KEYMAPS = 262,
|
|
Packit Service |
50ad14 |
KEYCODE = 263,
|
|
Packit Service |
50ad14 |
EQUALS = 264,
|
|
Packit Service |
50ad14 |
PLAIN = 265,
|
|
Packit Service |
50ad14 |
SHIFT = 266,
|
|
Packit Service |
50ad14 |
CONTROL = 267,
|
|
Packit Service |
50ad14 |
ALT = 268,
|
|
Packit Service |
50ad14 |
ALTGR = 269,
|
|
Packit Service |
50ad14 |
SHIFTL = 270,
|
|
Packit Service |
50ad14 |
SHIFTR = 271,
|
|
Packit Service |
50ad14 |
CTRLL = 272,
|
|
Packit Service |
50ad14 |
CTRLR = 273,
|
|
Packit Service |
50ad14 |
CAPSSHIFT = 274,
|
|
Packit Service |
50ad14 |
COMMA = 275,
|
|
Packit Service |
50ad14 |
DASH = 276,
|
|
Packit Service |
50ad14 |
STRING = 277,
|
|
Packit Service |
50ad14 |
STRLITERAL = 278,
|
|
Packit Service |
50ad14 |
COMPOSE = 279,
|
|
Packit Service |
50ad14 |
TO = 280,
|
|
Packit Service |
50ad14 |
CCHAR = 281,
|
|
Packit Service |
50ad14 |
ERROR = 282,
|
|
Packit Service |
50ad14 |
PLUS = 283,
|
|
Packit Service |
50ad14 |
UNUMBER = 284,
|
|
Packit Service |
50ad14 |
ALT_IS_META = 285,
|
|
Packit Service |
50ad14 |
STRINGS = 286,
|
|
Packit Service |
50ad14 |
AS = 287,
|
|
Packit Service |
50ad14 |
USUAL = 288,
|
|
Packit Service |
50ad14 |
ON = 289,
|
|
Packit Service |
50ad14 |
FOR = 290
|
|
Packit Service |
50ad14 |
};
|
|
Packit Service |
50ad14 |
#endif
|
|
Packit Service |
50ad14 |
/* Tokens. */
|
|
Packit Service |
50ad14 |
#define EOL 258
|
|
Packit Service |
50ad14 |
#define NUMBER 259
|
|
Packit Service |
50ad14 |
#define LITERAL 260
|
|
Packit Service |
50ad14 |
#define CHARSET 261
|
|
Packit Service |
50ad14 |
#define KEYMAPS 262
|
|
Packit Service |
50ad14 |
#define KEYCODE 263
|
|
Packit Service |
50ad14 |
#define EQUALS 264
|
|
Packit Service |
50ad14 |
#define PLAIN 265
|
|
Packit Service |
50ad14 |
#define SHIFT 266
|
|
Packit Service |
50ad14 |
#define CONTROL 267
|
|
Packit Service |
50ad14 |
#define ALT 268
|
|
Packit Service |
50ad14 |
#define ALTGR 269
|
|
Packit Service |
50ad14 |
#define SHIFTL 270
|
|
Packit Service |
50ad14 |
#define SHIFTR 271
|
|
Packit Service |
50ad14 |
#define CTRLL 272
|
|
Packit Service |
50ad14 |
#define CTRLR 273
|
|
Packit Service |
50ad14 |
#define CAPSSHIFT 274
|
|
Packit Service |
50ad14 |
#define COMMA 275
|
|
Packit Service |
50ad14 |
#define DASH 276
|
|
Packit Service |
50ad14 |
#define STRING 277
|
|
Packit Service |
50ad14 |
#define STRLITERAL 278
|
|
Packit Service |
50ad14 |
#define COMPOSE 279
|
|
Packit Service |
50ad14 |
#define TO 280
|
|
Packit Service |
50ad14 |
#define CCHAR 281
|
|
Packit Service |
50ad14 |
#define ERROR 282
|
|
Packit Service |
50ad14 |
#define PLUS 283
|
|
Packit Service |
50ad14 |
#define UNUMBER 284
|
|
Packit Service |
50ad14 |
#define ALT_IS_META 285
|
|
Packit Service |
50ad14 |
#define STRINGS 286
|
|
Packit Service |
50ad14 |
#define AS 287
|
|
Packit Service |
50ad14 |
#define USUAL 288
|
|
Packit Service |
50ad14 |
#define ON 289
|
|
Packit Service |
50ad14 |
#define FOR 290
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/* Value type. */
|
|
Packit Service |
50ad14 |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
union YYSTYPE
|
|
Packit Service |
50ad14 |
{
|
|
Packit Service |
50ad14 |
#line 59 "parser.y" /* yacc.c:1909 */
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
long long int num;
|
|
Packit Service |
50ad14 |
struct strdata str;
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#line 144 "parser.h" /* yacc.c:1909 */
|
|
Packit Service |
50ad14 |
};
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
typedef union YYSTYPE YYSTYPE;
|
|
Packit Service |
50ad14 |
# define YYSTYPE_IS_TRIVIAL 1
|
|
Packit Service |
50ad14 |
# define YYSTYPE_IS_DECLARED 1
|
|
Packit Service |
50ad14 |
#endif
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
int yyparse (void *scanner, struct lk_ctx *ctx);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#endif /* !YY_YY_PARSER_H_INCLUDED */
|