glcpp-parse.h revision 10e230b6
1/* A Bison parser, made by GNU Bison 3.2.4.  */
2
3/* Bison interface for Yacc-like parsers in C
4
5   Copyright (C) 1984, 1989-1990, 2000-2015, 2018 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/* Undocumented macros, especially those whose name start with YY_,
34   are private implementation details.  Do not rely on them.  */
35
36#ifndef YY_GLCPP_PARSER_SRC_COMPILER_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED
37# define YY_GLCPP_PARSER_SRC_COMPILER_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED
38/* Debug traces.  */
39#ifndef YYDEBUG
40# define YYDEBUG 1
41#endif
42#if YYDEBUG
43extern int glcpp_parser_debug;
44#endif
45
46/* Token type.  */
47#ifndef YYTOKENTYPE
48# define YYTOKENTYPE
49  enum yytokentype
50  {
51    DEFINED = 258,
52    ELIF_EXPANDED = 259,
53    HASH_TOKEN = 260,
54    DEFINE_TOKEN = 261,
55    FUNC_IDENTIFIER = 262,
56    OBJ_IDENTIFIER = 263,
57    ELIF = 264,
58    ELSE = 265,
59    ENDIF = 266,
60    ERROR_TOKEN = 267,
61    IF = 268,
62    IFDEF = 269,
63    IFNDEF = 270,
64    LINE = 271,
65    PRAGMA = 272,
66    UNDEF = 273,
67    VERSION_TOKEN = 274,
68    GARBAGE = 275,
69    IDENTIFIER = 276,
70    IF_EXPANDED = 277,
71    INTEGER = 278,
72    INTEGER_STRING = 279,
73    LINE_EXPANDED = 280,
74    NEWLINE = 281,
75    OTHER = 282,
76    PLACEHOLDER = 283,
77    SPACE = 284,
78    PLUS_PLUS = 285,
79    MINUS_MINUS = 286,
80    PASTE = 287,
81    OR = 288,
82    AND = 289,
83    EQUAL = 290,
84    NOT_EQUAL = 291,
85    LESS_OR_EQUAL = 292,
86    GREATER_OR_EQUAL = 293,
87    LEFT_SHIFT = 294,
88    RIGHT_SHIFT = 295,
89    UNARY = 296
90  };
91#endif
92
93/* Value type.  */
94
95/* Location type.  */
96#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
97typedef struct YYLTYPE YYLTYPE;
98struct YYLTYPE
99{
100  int first_line;
101  int first_column;
102  int last_line;
103  int last_column;
104};
105# define YYLTYPE_IS_DECLARED 1
106# define YYLTYPE_IS_TRIVIAL 1
107#endif
108
109
110
111int glcpp_parser_parse (glcpp_parser_t *parser);
112
113#endif /* !YY_GLCPP_PARSER_SRC_COMPILER_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED  */
114