gram.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /* A Bison parser, made by GNU Bison 2.3. */
  2. /* Skeleton interface for Bison's Yacc-like parsers in C
  3. Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  4. Free Software Foundation, Inc.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16. Boston, MA 02110-1301, USA. */
  17. /* As a special exception, you may create a larger work that contains
  18. part or all of the Bison parser skeleton and distribute that work
  19. under terms of your choice, so long as that work isn't itself a
  20. parser generator using the skeleton or a modified version thereof
  21. as a parser skeleton. Alternatively, if you modify or redistribute
  22. the parser skeleton itself, you may (at your option) remove this
  23. special exception, which will cause the skeleton and the resulting
  24. Bison output files to be licensed under the GNU General Public
  25. License without this special exception.
  26. This special exception was added by the Free Software Foundation in
  27. version 2.2 of Bison. */
  28. /* Tokens. */
  29. #ifndef YYTOKENTYPE
  30. # define YYTOKENTYPE
  31. /* Put the tokens into the symbol table, so that GDB and other debuggers
  32. know about them. */
  33. enum yytokentype {
  34. NUMBER = 258,
  35. IDENT = 259,
  36. SEP = 260,
  37. ABS = 261,
  38. SQRT = 262,
  39. EXP = 263,
  40. LOG = 264,
  41. LOG10 = 265,
  42. SIN = 266,
  43. COS = 267,
  44. TAN = 268,
  45. ASIN = 269,
  46. ACOS = 270,
  47. ATAN = 271,
  48. SINH = 272,
  49. COSH = 273,
  50. TANH = 274,
  51. ASINH = 275,
  52. ACOSH = 276,
  53. ATANH = 277,
  54. FLOOR = 278,
  55. CEIL = 279,
  56. J0 = 280,
  57. J1 = 281,
  58. Y0 = 282,
  59. Y1 = 283,
  60. LGAMMA = 284,
  61. GAMMA = 285,
  62. ERF = 286,
  63. ERFC = 287,
  64. INVERF = 288,
  65. NORM = 289,
  66. INVNORM = 290,
  67. IGAMMA = 291,
  68. IBETA = 292,
  69. EVERY = 293,
  70. FROM = 294,
  71. PRINT = 295,
  72. STEP = 296,
  73. EXAM = 297,
  74. UMINUS = 298
  75. };
  76. #endif
  77. /* Tokens. */
  78. #define NUMBER 258
  79. #define IDENT 259
  80. #define SEP 260
  81. #define ABS 261
  82. #define SQRT 262
  83. #define EXP 263
  84. #define LOG 264
  85. #define LOG10 265
  86. #define SIN 266
  87. #define COS 267
  88. #define TAN 268
  89. #define ASIN 269
  90. #define ACOS 270
  91. #define ATAN 271
  92. #define SINH 272
  93. #define COSH 273
  94. #define TANH 274
  95. #define ASINH 275
  96. #define ACOSH 276
  97. #define ATANH 277
  98. #define FLOOR 278
  99. #define CEIL 279
  100. #define J0 280
  101. #define J1 281
  102. #define Y0 282
  103. #define Y1 283
  104. #define LGAMMA 284
  105. #define GAMMA 285
  106. #define ERF 286
  107. #define ERFC 287
  108. #define INVERF 288
  109. #define NORM 289
  110. #define INVNORM 290
  111. #define IGAMMA 291
  112. #define IBETA 292
  113. #define EVERY 293
  114. #define FROM 294
  115. #define PRINT 295
  116. #define STEP 296
  117. #define EXAM 297
  118. #define UMINUS 298
  119. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  120. typedef union YYSTYPE
  121. #line 85 "gram.y"
  122. {
  123. struct lex *lexptr;
  124. struct expr *exprptr;
  125. struct prt *prtptr;
  126. int simple;
  127. }
  128. /* Line 1489 of yacc.c. */
  129. #line 142 "gram.h"
  130. YYSTYPE;
  131. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  132. # define YYSTYPE_IS_DECLARED 1
  133. # define YYSTYPE_IS_TRIVIAL 1
  134. #endif
  135. extern YYSTYPE yylval;