_ts1.0_parser.h 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /*
  2. -----------------------------------------------------------------------------
  3. This source file is part of OGRE
  4. (Object-oriented Graphics Rendering Engine)
  5. For the latest info, see http://www.ogre3d.org/
  6. Copyright (c) 2000-2011 Torus Knot Software Ltd
  7. Permission is hereby granted, free of charge, to any person obtaining a copy
  8. of this software and associated documentation files (the "Software"), to deal
  9. in the Software without restriction, including without limitation the rights
  10. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. copies of the Software, and to permit persons to whom the Software is
  12. furnished to do so, subject to the following conditions:
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21. THE SOFTWARE.
  22. -----------------------------------------------------------------------------
  23. */
  24. /* A Bison parser, made by GNU Bison 1.875. */
  25. /* Skeleton parser for Yacc-like parsing with Bison,
  26. Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
  27. This program is free software; you can redistribute it and/or modify
  28. it under the terms of the GNU General Public License as published by
  29. the Free Software Foundation; either version 2, or (at your option)
  30. any later version.
  31. This program is distributed in the hope that it will be useful,
  32. but WITHOUT ANY WARRANTY; without even the implied warranty of
  33. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  34. GNU General Public License for more details.
  35. You should have received a copy of the GNU General Public License
  36. along with this program; if not, write to the Free Software
  37. Foundation, Inc., 59 Temple Place - Suite 330,
  38. Boston, MA 02111-1307, USA. */
  39. /* As a special exception, when this file is copied by Bison into a
  40. Bison output file, you may use that output file without restriction.
  41. This special exception was added by the Free Software Foundation
  42. in version 1.24 of Bison. */
  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. floatValue = 258,
  50. gequal = 259,
  51. less = 260,
  52. texVariable = 261,
  53. expandString = 262,
  54. openParen = 263,
  55. closeParen = 264,
  56. semicolon = 265,
  57. comma = 266,
  58. nop = 267,
  59. texture_1d = 268,
  60. texture_2d = 269,
  61. texture_rectangle = 270,
  62. texture_3d = 271,
  63. texture_cube_map = 272,
  64. cull_fragment = 273,
  65. pass_through = 274,
  66. offset_2d_scale = 275,
  67. offset_2d = 276,
  68. offset_rectangle_scale = 277,
  69. offset_rectangle = 278,
  70. dependent_ar = 279,
  71. dependent_gb = 280,
  72. dot_product_2d_1of2 = 281,
  73. dot_product_2d_2of2 = 282,
  74. dot_product_rectangle_1of2 = 283,
  75. dot_product_rectangle_2of2 = 284,
  76. dot_product_depth_replace_1of2 = 285,
  77. dot_product_depth_replace_2of2 = 286,
  78. dot_product_3d_1of3 = 287,
  79. dot_product_3d_2of3 = 288,
  80. dot_product_3d_3of3 = 289,
  81. dot_product_cube_map_1of3 = 290,
  82. dot_product_cube_map_2of3 = 291,
  83. dot_product_cube_map_3of3 = 292,
  84. dot_product_reflect_cube_map_eye_from_qs_1of3 = 293,
  85. dot_product_reflect_cube_map_eye_from_qs_2of3 = 294,
  86. dot_product_reflect_cube_map_eye_from_qs_3of3 = 295,
  87. dot_product_reflect_cube_map_const_eye_1of3 = 296,
  88. dot_product_reflect_cube_map_const_eye_2of3 = 297,
  89. dot_product_reflect_cube_map_const_eye_3of3 = 298,
  90. dot_product_cube_map_and_reflect_cube_map_eye_from_qs_1of3 = 299,
  91. dot_product_cube_map_and_reflect_cube_map_eye_from_qs_2of3 = 300,
  92. dot_product_cube_map_and_reflect_cube_map_eye_from_qs_3of3 = 301,
  93. dot_product_cube_map_and_reflect_cube_map_const_eye_1of3 = 302,
  94. dot_product_cube_map_and_reflect_cube_map_const_eye_2of3 = 303,
  95. dot_product_cube_map_and_reflect_cube_map_const_eye_3of3 = 304
  96. };
  97. #endif
  98. #define floatValue 258
  99. #define gequal 259
  100. #define less 260
  101. #define texVariable 261
  102. #define expandString 262
  103. #define openParen 263
  104. #define closeParen 264
  105. #define semicolon 265
  106. #define comma 266
  107. #define nop 267
  108. #define texture_1d 268
  109. #define texture_2d 269
  110. #define texture_rectangle 270
  111. #define texture_3d 271
  112. #define texture_cube_map 272
  113. #define cull_fragment 273
  114. #define pass_through 274
  115. #define offset_2d_scale 275
  116. #define offset_2d 276
  117. #define offset_rectangle_scale 277
  118. #define offset_rectangle 278
  119. #define dependent_ar 279
  120. #define dependent_gb 280
  121. #define dot_product_2d_1of2 281
  122. #define dot_product_2d_2of2 282
  123. #define dot_product_rectangle_1of2 283
  124. #define dot_product_rectangle_2of2 284
  125. #define dot_product_depth_replace_1of2 285
  126. #define dot_product_depth_replace_2of2 286
  127. #define dot_product_3d_1of3 287
  128. #define dot_product_3d_2of3 288
  129. #define dot_product_3d_3of3 289
  130. #define dot_product_cube_map_1of3 290
  131. #define dot_product_cube_map_2of3 291
  132. #define dot_product_cube_map_3of3 292
  133. #define dot_product_reflect_cube_map_eye_from_qs_1of3 293
  134. #define dot_product_reflect_cube_map_eye_from_qs_2of3 294
  135. #define dot_product_reflect_cube_map_eye_from_qs_3of3 295
  136. #define dot_product_reflect_cube_map_const_eye_1of3 296
  137. #define dot_product_reflect_cube_map_const_eye_2of3 297
  138. #define dot_product_reflect_cube_map_const_eye_3of3 298
  139. #define dot_product_cube_map_and_reflect_cube_map_eye_from_qs_1of3 299
  140. #define dot_product_cube_map_and_reflect_cube_map_eye_from_qs_2of3 300
  141. #define dot_product_cube_map_and_reflect_cube_map_eye_from_qs_3of3 301
  142. #define dot_product_cube_map_and_reflect_cube_map_const_eye_1of3 302
  143. #define dot_product_cube_map_and_reflect_cube_map_const_eye_2of3 303
  144. #define dot_product_cube_map_and_reflect_cube_map_const_eye_3of3 304
  145. #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  146. #line 18 "ts1.0_grammar.y"
  147. typedef union YYSTYPE {
  148. float fval;
  149. InstPtr inst;
  150. InstListPtr instList;
  151. MappedVariablePtr variable;
  152. } YYSTYPE;
  153. /* Line 1240 of yacc.c. */
  154. #line 141 "_ts1.0_parser.h"
  155. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  156. # define YYSTYPE_IS_DECLARED 1
  157. # define YYSTYPE_IS_TRIVIAL 1
  158. #endif
  159. extern YYSTYPE ts10_lval;