PIPS
tp_yacc.h
Go to the documentation of this file.
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_TP_Y_TAB_H_INCLUDED
39 # define YY_TP_Y_TAB_H_INCLUDED
40 /* Debug traces. */
41 #ifndef YYDEBUG
42 # define YYDEBUG 0
43 #endif
44 #if YYDEBUG
45 extern int tp_debug;
46 #endif
47 
48 /* Token kinds. */
49 #ifndef YYTOKENTYPE
50 # define YYTOKENTYPE
52  {
53  YYEMPTY = -2,
54  YYEOF = 0, /* "end of file" */
55  YYerror = 256, /* error */
56  YYUNDEF = 257, /* "invalid token" */
57  TK_OPEN = 258, /* TK_OPEN */
58  TK_CREATE = 259, /* TK_CREATE */
59  TK_CLOSE = 260, /* TK_CLOSE */
60  TK_CHECKPOINT = 261, /* TK_CHECKPOINT */
61  TK_DELETE = 262, /* TK_DELETE */
62  TK_MODULE = 263, /* TK_MODULE */
63  TK_MAKE = 264, /* TK_MAKE */
64  TK_APPLY = 265, /* TK_APPLY */
65  TK_CAPPLY = 266, /* TK_CAPPLY */
66  TK_DISPLAY = 267, /* TK_DISPLAY */
67  TK_REMOVE = 268, /* TK_REMOVE */
68  TK_ACTIVATE = 269, /* TK_ACTIVATE */
69  TK_SET_PROPERTY = 270, /* TK_SET_PROPERTY */
70  TK_GET_PROPERTY = 271, /* TK_GET_PROPERTY */
71  TK_SET_ENVIRONMENT = 272, /* TK_SET_ENVIRONMENT */
72  TK_GET_ENVIRONMENT = 273, /* TK_GET_ENVIRONMENT */
73  TK_UNSET_ENVIRONMENT = 274, /* TK_UNSET_ENVIRONMENT */
74  TK_CDIR = 275, /* TK_CDIR */
75  TK_INFO = 276, /* TK_INFO */
76  TK_PWD = 277, /* TK_PWD */
77  TK_HELP = 278, /* TK_HELP */
78  TK_SHOW = 279, /* TK_SHOW */
79  TK_SOURCE = 280, /* TK_SOURCE */
80  TK_SHELL = 281, /* TK_SHELL */
81  TK_ECHO = 282, /* TK_ECHO */
82  TK_UNKNOWN = 283, /* TK_UNKNOWN */
83  TK_TIMEOUT = 284, /* TK_TIMEOUT */
84  TK_QUIT = 285, /* TK_QUIT */
85  TK_EXIT = 286, /* TK_EXIT */
86  TK_LINE = 287, /* TK_LINE */
87  TK_CHECKACTIVE = 288, /* TK_CHECKACTIVE */
88  TK_VERSION = 289, /* TK_VERSION */
89  TK_TOUCH = 290, /* TK_TOUCH */
90  TK_OWNER_NAME = 291, /* TK_OWNER_NAME */
91  TK_OWNER_ALL = 292, /* TK_OWNER_ALL */
92  TK_OWNER_ALLFUNC = 293, /* TK_OWNER_ALLFUNC */
93  TK_OWNER_ALLCU = 294, /* TK_OWNER_ALLCU */
94  TK_OWNER_PROGRAM = 295, /* TK_OWNER_PROGRAM */
95  TK_OWNER_MAIN = 296, /* TK_OWNER_MAIN */
96  TK_OWNER_MODULE = 297, /* TK_OWNER_MODULE */
97  TK_OWNER_CALLERS = 298, /* TK_OWNER_CALLERS */
98  TK_OWNER_CALLEES = 299, /* TK_OWNER_CALLEES */
99  TK_OPENPAREN = 300, /* TK_OPENPAREN */
100  TK_COMMA = 301, /* TK_COMMA */
101  TK_CLOSEPAREN = 302, /* TK_CLOSEPAREN */
102  TK_EQUAL = 303, /* TK_EQUAL */
103  TK_NAME = 304, /* TK_NAME */
104  TK_A_STRING = 305, /* TK_A_STRING */
105  TK_ENDOFLINE = 306, /* TK_ENDOFLINE */
106  TK_INT = 307 /* TK_INT */
107  };
108  typedef enum yytokentype yytoken_kind_t;
109 #endif
110 /* Token kinds. */
111 #define YYEMPTY -2
112 #define YYEOF 0
113 #define YYerror 256
114 #define YYUNDEF 257
115 #define TK_OPEN 258
116 #define TK_CREATE 259
117 #define TK_CLOSE 260
118 #define TK_CHECKPOINT 261
119 #define TK_DELETE 262
120 #define TK_MODULE 263
121 #define TK_MAKE 264
122 #define TK_APPLY 265
123 #define TK_CAPPLY 266
124 #define TK_DISPLAY 267
125 #define TK_REMOVE 268
126 #define TK_ACTIVATE 269
127 #define TK_SET_PROPERTY 270
128 #define TK_GET_PROPERTY 271
129 #define TK_SET_ENVIRONMENT 272
130 #define TK_GET_ENVIRONMENT 273
131 #define TK_UNSET_ENVIRONMENT 274
132 #define TK_CDIR 275
133 #define TK_INFO 276
134 #define TK_PWD 277
135 #define TK_HELP 278
136 #define TK_SHOW 279
137 #define TK_SOURCE 280
138 #define TK_SHELL 281
139 #define TK_ECHO 282
140 #define TK_UNKNOWN 283
141 #define TK_TIMEOUT 284
142 #define TK_QUIT 285
143 #define TK_EXIT 286
144 #define TK_LINE 287
145 #define TK_CHECKACTIVE 288
146 #define TK_VERSION 289
147 #define TK_TOUCH 290
148 #define TK_OWNER_NAME 291
149 #define TK_OWNER_ALL 292
150 #define TK_OWNER_ALLFUNC 293
151 #define TK_OWNER_ALLCU 294
152 #define TK_OWNER_PROGRAM 295
153 #define TK_OWNER_MAIN 296
154 #define TK_OWNER_MODULE 297
155 #define TK_OWNER_CALLERS 298
156 #define TK_OWNER_CALLEES 299
157 #define TK_OPENPAREN 300
158 #define TK_COMMA 301
159 #define TK_CLOSEPAREN 302
160 #define TK_EQUAL 303
161 #define TK_NAME 304
162 #define TK_A_STRING 305
163 #define TK_ENDOFLINE 306
164 #define TK_INT 307
165 
166 /* Value type. */
167 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
168 union YYSTYPE
169 {
170 #line 501 "tp_yacc.y"
171 
172  int status;
173  int ival;
174  string name;
175  res_or_rule rn;
177 
178 #line 179 "y.tab.h"
179 
180 };
181 typedef union YYSTYPE YYSTYPE;
182 # define YYSTYPE_IS_TRIVIAL 1
183 # define YYSTYPE_IS_DECLARED 1
184 #endif
185 
186 
187 extern YYSTYPE tp_lval;
188 
189 
190 int tp_parse (void);
191 
192 
193 #endif /* !YY_TP_Y_TAB_H_INCLUDED */
yytokentype
Definition: genread.h:52
Storage for arguments of tpips commands.
Definition: tpips-local.h:28
#define TK_CLOSE
Definition: tp_yacc.h:117
#define TK_PWD
Definition: tp_yacc.h:134
#define TK_SOURCE
Definition: tp_yacc.h:137
#define TK_TOUCH
Definition: tp_yacc.h:147
#define TK_APPLY
Definition: tp_yacc.h:122
#define TK_DELETE
Definition: tp_yacc.h:119
#define TK_EQUAL
Definition: tp_yacc.h:160
#define TK_OWNER_MAIN
Definition: tp_yacc.h:153
#define TK_SET_ENVIRONMENT
Definition: tp_yacc.h:129
#define TK_A_STRING
Definition: tp_yacc.h:162
#define TK_SHOW
Definition: tp_yacc.h:136
#define TK_OWNER_NAME
Definition: tp_yacc.h:148
#define TK_REMOVE
Definition: tp_yacc.h:125
#define YYEOF
Definition: tp_yacc.h:112
#define TK_HELP
Definition: tp_yacc.h:135
#define TK_CLOSEPAREN
Definition: tp_yacc.h:159
#define TK_CHECKPOINT
Definition: tp_yacc.h:118
#define TK_CAPPLY
Definition: tp_yacc.h:123
#define TK_CREATE
Definition: tp_yacc.h:116
#define TK_OWNER_ALL
Definition: tp_yacc.h:149
#define TK_UNSET_ENVIRONMENT
Definition: tp_yacc.h:131
#define TK_QUIT
Definition: tp_yacc.h:142
YYSTYPE tp_lval
#define YYerror
Definition: tp_yacc.h:113
#define TK_EXIT
Definition: tp_yacc.h:143
#define YYUNDEF
Definition: tp_yacc.h:114
#define TK_SHELL
Definition: tp_yacc.h:138
#define TK_OPENPAREN
Definition: tp_yacc.h:157
#define TK_ACTIVATE
Definition: tp_yacc.h:126
#define TK_CDIR
Definition: tp_yacc.h:132
#define TK_INT
Definition: tp_yacc.h:164
#define TK_ENDOFLINE
Definition: tp_yacc.h:163
#define TK_OWNER_ALLFUNC
Definition: tp_yacc.h:150
#define TK_OWNER_ALLCU
Definition: tp_yacc.h:151
#define TK_MODULE
Definition: tp_yacc.h:120
#define TK_OWNER_CALLEES
Definition: tp_yacc.h:156
#define TK_UNKNOWN
Definition: tp_yacc.h:140
#define TK_COMMA
Definition: tp_yacc.h:158
#define TK_NAME
Definition: tp_yacc.h:161
#define TK_GET_PROPERTY
Definition: tp_yacc.h:128
#define TK_VERSION
Definition: tp_yacc.h:146
#define TK_OWNER_MODULE
Definition: tp_yacc.h:154
#define TK_OPEN
Definition: tp_yacc.h:115
#define TK_OWNER_CALLERS
Definition: tp_yacc.h:155
#define TK_DISPLAY
Definition: tp_yacc.h:124
enum yytokentype yytoken_kind_t
Definition: tp_yacc.h:108
#define TK_OWNER_PROGRAM
Definition: tp_yacc.h:152
#define TK_SET_PROPERTY
Definition: tp_yacc.h:127
#define TK_CHECKACTIVE
Definition: tp_yacc.h:145
#define YYEMPTY
Token kinds.
Definition: tp_yacc.h:111
#define TK_GET_ENVIRONMENT
Definition: tp_yacc.h:130
#define TK_TIMEOUT
Definition: tp_yacc.h:141
#define TK_INFO
Definition: tp_yacc.h:133
#define TK_ECHO
Definition: tp_yacc.h:139
#define TK_LINE
Definition: tp_yacc.h:144
int tp_parse(void)
#define TK_MAKE
Definition: tp_yacc.h:121
Value type.
Definition: genread.h:115
char * name
Definition: genspec.h:116
gen_array_t array
Definition: tp_yacc.c:668
int status
Definition: tp_yacc.c:664
res_or_rule rn
Definition: tp_yacc.c:667
int ival
Definition: tp_yacc.c:665