github.com/aergoio/aergo@v1.3.1/libtool/src/gmp-6.1.2/demos/calc/calc.h (about) 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_YY_CALC_H_INCLUDED 34 # define YY_YY_CALC_H_INCLUDED 35 /* Enabling traces. */ 36 #ifndef YYDEBUG 37 # define YYDEBUG 0 38 #endif 39 #if YYDEBUG 40 extern int yydebug; 41 #endif 42 43 /* Tokens. */ 44 #ifndef YYTOKENTYPE 45 # define YYTOKENTYPE 46 /* Put the tokens into the symbol table, so that GDB and other debuggers 47 know about them. */ 48 enum yytokentype { 49 EOS = 258, 50 BAD = 259, 51 HELP = 260, 52 HEX = 261, 53 DECIMAL = 262, 54 QUIT = 263, 55 ABS = 264, 56 BIN = 265, 57 FIB = 266, 58 GCD = 267, 59 KRON = 268, 60 LCM = 269, 61 LUCNUM = 270, 62 NEXTPRIME = 271, 63 POWM = 272, 64 ROOT = 273, 65 SQRT = 274, 66 NUMBER = 275, 67 VARIABLE = 276, 68 LOR = 277, 69 LAND = 278, 70 GE = 279, 71 LE = 280, 72 NE = 281, 73 EQ = 282, 74 RSHIFT = 283, 75 LSHIFT = 284, 76 UMINUS = 285 77 }; 78 #endif 79 /* Tokens. */ 80 #define EOS 258 81 #define BAD 259 82 #define HELP 260 83 #define HEX 261 84 #define DECIMAL 262 85 #define QUIT 263 86 #define ABS 264 87 #define BIN 265 88 #define FIB 266 89 #define GCD 267 90 #define KRON 268 91 #define LCM 269 92 #define LUCNUM 270 93 #define NEXTPRIME 271 94 #define POWM 272 95 #define ROOT 273 96 #define SQRT 274 97 #define NUMBER 275 98 #define VARIABLE 276 99 #define LOR 277 100 #define LAND 278 101 #define GE 279 102 #define LE 280 103 #define NE 281 104 #define EQ 282 105 #define RSHIFT 283 106 #define LSHIFT 284 107 #define UMINUS 285 108 109 110 111 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 112 typedef union YYSTYPE 113 { 114 /* Line 2053 of yacc.c */ 115 #line 142 "../../../gmp/demos/calc/calc.y" 116 117 char *str; 118 int var; 119 120 121 /* Line 2053 of yacc.c */ 122 #line 123 "calc.h" 123 } YYSTYPE; 124 # define YYSTYPE_IS_TRIVIAL 1 125 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 126 # define YYSTYPE_IS_DECLARED 1 127 #endif 128 129 extern YYSTYPE yylval; 130 131 #ifdef YYPARSE_PARAM 132 #if defined __STDC__ || defined __cplusplus 133 int yyparse (void *YYPARSE_PARAM); 134 #else 135 int yyparse (); 136 #endif 137 #else /* ! YYPARSE_PARAM */ 138 #if defined __STDC__ || defined __cplusplus 139 int yyparse (void); 140 #else 141 int yyparse (); 142 #endif 143 #endif /* ! YYPARSE_PARAM */ 144 145 #endif /* !YY_YY_CALC_H_INCLUDED */