glcpp-parse.h revision 96c5ddc4
1/* A Bison parser, made by GNU Bison 3.7.4. */ 2 3/* Bison interface for Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 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 <http://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_GLCPP_PARSER_SRC_COMPILER_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED 39# define YY_GLCPP_PARSER_SRC_COMPILER_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED 40/* Debug traces. */ 41#ifndef YYDEBUG 42# define YYDEBUG 1 43#endif 44#if YYDEBUG 45extern int glcpp_parser_debug; 46#endif 47 48/* Token kinds. */ 49#ifndef YYTOKENTYPE 50# define YYTOKENTYPE 51 enum yytokentype 52 { 53 YYEMPTY = -2, 54 YYEOF = 0, /* "end of file" */ 55 YYerror = 256, /* error */ 56 YYUNDEF = 257, /* "invalid token" */ 57 DEFINED = 258, /* DEFINED */ 58 ELIF_EXPANDED = 259, /* ELIF_EXPANDED */ 59 HASH_TOKEN = 260, /* HASH_TOKEN */ 60 DEFINE_TOKEN = 261, /* DEFINE_TOKEN */ 61 FUNC_IDENTIFIER = 262, /* FUNC_IDENTIFIER */ 62 OBJ_IDENTIFIER = 263, /* OBJ_IDENTIFIER */ 63 ELIF = 264, /* ELIF */ 64 ELSE = 265, /* ELSE */ 65 ENDIF = 266, /* ENDIF */ 66 ERROR_TOKEN = 267, /* ERROR_TOKEN */ 67 IF = 268, /* IF */ 68 IFDEF = 269, /* IFDEF */ 69 IFNDEF = 270, /* IFNDEF */ 70 LINE = 271, /* LINE */ 71 PRAGMA = 272, /* PRAGMA */ 72 UNDEF = 273, /* UNDEF */ 73 VERSION_TOKEN = 274, /* VERSION_TOKEN */ 74 GARBAGE = 275, /* GARBAGE */ 75 IDENTIFIER = 276, /* IDENTIFIER */ 76 IF_EXPANDED = 277, /* IF_EXPANDED */ 77 INTEGER = 278, /* INTEGER */ 78 INTEGER_STRING = 279, /* INTEGER_STRING */ 79 LINE_EXPANDED = 280, /* LINE_EXPANDED */ 80 NEWLINE = 281, /* NEWLINE */ 81 OTHER = 282, /* OTHER */ 82 PLACEHOLDER = 283, /* PLACEHOLDER */ 83 SPACE = 284, /* SPACE */ 84 PLUS_PLUS = 285, /* PLUS_PLUS */ 85 MINUS_MINUS = 286, /* MINUS_MINUS */ 86 PATH = 287, /* PATH */ 87 INCLUDE = 288, /* INCLUDE */ 88 PASTE = 289, /* PASTE */ 89 OR = 290, /* OR */ 90 AND = 291, /* AND */ 91 EQUAL = 292, /* EQUAL */ 92 NOT_EQUAL = 293, /* NOT_EQUAL */ 93 LESS_OR_EQUAL = 294, /* LESS_OR_EQUAL */ 94 GREATER_OR_EQUAL = 295, /* GREATER_OR_EQUAL */ 95 LEFT_SHIFT = 296, /* LEFT_SHIFT */ 96 RIGHT_SHIFT = 297, /* RIGHT_SHIFT */ 97 UNARY = 298 /* UNARY */ 98 }; 99 typedef enum yytokentype yytoken_kind_t; 100#endif 101 102/* Value type. */ 103 104/* Location type. */ 105#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED 106typedef struct YYLTYPE YYLTYPE; 107struct YYLTYPE 108{ 109 int first_line; 110 int first_column; 111 int last_line; 112 int last_column; 113}; 114# define YYLTYPE_IS_DECLARED 1 115# define YYLTYPE_IS_TRIVIAL 1 116#endif 117 118 119 120int glcpp_parser_parse (glcpp_parser_t *parser); 121 122#endif /* !YY_GLCPP_PARSER_SRC_COMPILER_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED */ 123