xref: /PHP-5.6/sapi/phpdbg/phpdbg_parser.h (revision 0afc04b9)
1 /* A Bison parser, made by GNU Bison 2.7.12-4996.  */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5       Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
6 
7    This program is free software: you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation, either version 3 of the License, or
10    (at your option) any later version.
11 
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16 
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19 
20 /* As a special exception, you may create a larger work that contains
21    part or all of the Bison parser skeleton and distribute that work
22    under terms of your choice, so long as that work isn't itself a
23    parser generator using the skeleton or a modified version thereof
24    as a parser skeleton.  Alternatively, if you modify or redistribute
25    the parser skeleton itself, you may (at your option) remove this
26    special exception, which will cause the skeleton and the resulting
27    Bison output files to be licensed under the GNU General Public
28    License without this special exception.
29 
30    This special exception was added by the Free Software Foundation in
31    version 2.2 of Bison.  */
32 
33 #ifndef YY_PHPDBG_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED
34 # define YY_PHPDBG_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED
35 /* Enabling traces.  */
36 #ifndef YYDEBUG
37 # define YYDEBUG 0
38 #endif
39 #if YYDEBUG
40 extern int phpdbg_debug;
41 #endif
42 /* "%code requires" blocks.  */
43 /* Line 2060 of yacc.c  */
44 #line 31 "/Users/Bob/php-src-5.6/sapi/phpdbg/phpdbg_parser.y"
45 
46 #include "phpdbg.h"
47 #ifndef YY_TYPEDEF_YY_SCANNER_T
48 #define YY_TYPEDEF_YY_SCANNER_T
49 typedef void* yyscan_t;
50 #endif
51 
52 
53 /* Line 2060 of yacc.c  */
54 #line 55 "sapi/phpdbg/phpdbg_parser.h"
55 
56 /* Tokens.  */
57 #ifndef YYTOKENTYPE
58 # define YYTOKENTYPE
59    /* Put the tokens into the symbol table, so that GDB and other debuggers
60       know about them.  */
61    enum yytokentype {
62      T_EVAL = 258,
63      T_RUN = 259,
64      T_SHELL = 260,
65      T_IF = 261,
66      T_TRUTHY = 262,
67      T_FALSY = 263,
68      T_STRING = 264,
69      T_COLON = 265,
70      T_DCOLON = 266,
71      T_POUND = 267,
72      T_PROTO = 268,
73      T_DIGITS = 269,
74      T_LITERAL = 270,
75      T_ADDR = 271,
76      T_OPCODE = 272,
77      T_ID = 273,
78      T_INPUT = 274,
79      T_UNEXPECTED = 275
80    };
81 #endif
82 /* Tokens.  */
83 #define T_EVAL 258
84 #define T_RUN 259
85 #define T_SHELL 260
86 #define T_IF 261
87 #define T_TRUTHY 262
88 #define T_FALSY 263
89 #define T_STRING 264
90 #define T_COLON 265
91 #define T_DCOLON 266
92 #define T_POUND 267
93 #define T_PROTO 268
94 #define T_DIGITS 269
95 #define T_LITERAL 270
96 #define T_ADDR 271
97 #define T_OPCODE 272
98 #define T_ID 273
99 #define T_INPUT 274
100 #define T_UNEXPECTED 275
101 
102 
103 
104 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
105 typedef int YYSTYPE;
106 # define YYSTYPE_IS_TRIVIAL 1
107 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
108 # define YYSTYPE_IS_DECLARED 1
109 #endif
110 
111 
112 #ifdef YYPARSE_PARAM
113 #if defined __STDC__ || defined __cplusplus
114 int phpdbg_parse (void *YYPARSE_PARAM);
115 #else
116 int phpdbg_parse ();
117 #endif
118 #else /* ! YYPARSE_PARAM */
119 #if defined __STDC__ || defined __cplusplus
120 int phpdbg_parse (void *tsrm_ls);
121 #else
122 int phpdbg_parse ();
123 #endif
124 #endif /* ! YYPARSE_PARAM */
125 
126 #endif /* !YY_PHPDBG_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED  */
127