The Pedigree Project 0.1
parser.h
1/*
2 * Copyright (c) 2008-2014, Pedigree Developers
3 *
4 * Please see the CONTRIB file in the root of the source tree for a full
5 * list of contributors.
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20/* A Bison parser, made by GNU Bison 2.4.1. */
21
22/* Skeleton interface for Bison's Yacc-like parsers in C
23
24 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
25 Free Software Foundation, Inc.
26
27 This program is free software: you can redistribute it and/or modify
28 it under the terms of the GNU General Public License as published by
29 the Free Software Foundation, either version 3 of the License, or
30 (at your option) any later version.
31
32 This program is distributed in the hope that it will be useful,
33 but WITHOUT ANY WARRANTY; without even the implied warranty of
34 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 GNU General Public License for more details.
36
37 You should have received a copy of the GNU General Public License
38 along with this program. If not, see <http://www.gnu.org/licenses/>. */
39
40/* As a special exception, you may create a larger work that contains
41 part or all of the Bison parser skeleton and distribute that work
42 under terms of your choice, so long as that work isn't itself a
43 parser generator using the skeleton or a modified version thereof
44 as a parser skeleton. Alternatively, if you modify or redistribute
45 the parser skeleton itself, you may (at your option) remove this
46 special exception, which will cause the skeleton and the resulting
47 Bison output files to be licensed under the GNU General Public
48 License without this special exception.
49
50 This special exception was added by the Free Software Foundation in
51 version 2.2 of Bison. */
52
53/* Tokens. */
54#ifndef YYTOKENTYPE
55#define YYTOKENTYPE
56/* Put the tokens into the symbol table, so that GDB and other debuggers
57 know about them. */
58enum yytokentype {
59 NEWLINE = 258,
60 QUOTE = 259,
61 STRING = 260,
62 CTRL = 261,
63 SHIFT = 262,
64 ALT = 263,
65 ALTGR = 264,
66 CTRL_SHIFT = 265,
67 SHIFT_ALT = 266,
68 CTRL_ALT = 267,
69 CTRL_SHIFT_ALT = 268,
70 SHIFT_ALTGR = 269,
71 CTRL_ALTGR = 270,
72 CTRL_SHIFT_ALTGR = 271,
73 SET_COMBINE = 272,
74 COMBINE = 273,
75 OPEN_SQ = 274,
76 CLOSE_SQ = 275,
77 DEFINE = 276,
78 QUOTED_CHAR = 277,
79 CODE_POINT = 278,
80 NUM = 279,
81 ERROR = 280,
82 END = 281
83};
84#endif
85/* Tokens. */
86#define NEWLINE 258
87#define QUOTE 259
88#define STRING 260
89#define CTRL 261
90#define SHIFT 262
91#define ALT 263
92#define ALTGR 264
93#define CTRL_SHIFT 265
94#define SHIFT_ALT 266
95#define CTRL_ALT 267
96#define CTRL_SHIFT_ALT 268
97#define SHIFT_ALTGR 269
98#define CTRL_ALTGR 270
99#define CTRL_SHIFT_ALTGR 271
100#define SET_COMBINE 272
101#define COMBINE 273
102#define OPEN_SQ 274
103#define CLOSE_SQ 275
104#define DEFINE 276
105#define QUOTED_CHAR 277
106#define CODE_POINT 278
107#define NUM 279
108#define ERROR 280
109#define END 281
110
111#if !defined YYSTYPE && !defined YYSTYPE_IS_DECLARED
112typedef union YYSTYPE {
113/* Line 1676 of yacc.c */
114#line 31 "parser.y"
115
116 int n;
117 char str[256];
118 char c;
119 struct cmd* cmd;
120 struct cmd_list* cmd_list;
121
122/* Line 1676 of yacc.c */
123#line 114 "parser.h"
124} YYSTYPE;
125#define YYSTYPE_IS_TRIVIAL 1
126#define yystype YYSTYPE /* obsolescent; will be withdrawn */
127#define YYSTYPE_IS_DECLARED 1
128#endif
129
130extern YYSTYPE yylval;
Definition cmd.h:30