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. */
58 enum yytokentype
59 {
60  NEWLINE = 258,
61  QUOTE = 259,
62  STRING = 260,
63  CTRL = 261,
64  SHIFT = 262,
65  ALT = 263,
66  ALTGR = 264,
67  CTRL_SHIFT = 265,
68  SHIFT_ALT = 266,
69  CTRL_ALT = 267,
70  CTRL_SHIFT_ALT = 268,
71  SHIFT_ALTGR = 269,
72  CTRL_ALTGR = 270,
73  CTRL_SHIFT_ALTGR = 271,
74  SET_COMBINE = 272,
75  COMBINE = 273,
76  OPEN_SQ = 274,
77  CLOSE_SQ = 275,
78  DEFINE = 276,
79  QUOTED_CHAR = 277,
80  CODE_POINT = 278,
81  NUM = 279,
82  ERROR = 280,
83  END = 281
84 };
85 #endif
86 /* Tokens. */
87 #define NEWLINE 258
88 #define QUOTE 259
89 #define STRING 260
90 #define CTRL 261
91 #define SHIFT 262
92 #define ALT 263
93 #define ALTGR 264
94 #define CTRL_SHIFT 265
95 #define SHIFT_ALT 266
96 #define CTRL_ALT 267
97 #define CTRL_SHIFT_ALT 268
98 #define SHIFT_ALTGR 269
99 #define CTRL_ALTGR 270
100 #define CTRL_SHIFT_ALTGR 271
101 #define SET_COMBINE 272
102 #define COMBINE 273
103 #define OPEN_SQ 274
104 #define CLOSE_SQ 275
105 #define DEFINE 276
106 #define QUOTED_CHAR 277
107 #define CODE_POINT 278
108 #define NUM 279
109 #define ERROR 280
110 #define END 281
111 
112 #if !defined YYSTYPE && !defined YYSTYPE_IS_DECLARED
113 typedef union YYSTYPE
114 {
115 /* Line 1676 of yacc.c */
116 #line 31 "parser.y"
117 
118  int n;
119  char str[256];
120  char c;
121  struct cmd *cmd;
122  struct cmd_list *cmd_list;
123 
124 /* Line 1676 of yacc.c */
125 #line 114 "parser.h"
126 } YYSTYPE;
127 #define YYSTYPE_IS_TRIVIAL 1
128 #define yystype YYSTYPE /* obsolescent; will be withdrawn */
129 #define YYSTYPE_IS_DECLARED 1
130 #endif
131 
132 extern YYSTYPE yylval;
Definition: cmd.h:30
#define ERROR(text)
Definition: Log.h:82