_rc1.0_parser.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. regVariable = 258,
  50. constVariable = 259,
  51. color_sum = 260,
  52. final_product = 261,
  53. expandString = 262,
  54. halfBiasString = 263,
  55. unsignedString = 264,
  56. unsignedInvertString = 265,
  57. muxString = 266,
  58. sumString = 267,
  59. rgb_portion = 268,
  60. alpha_portion = 269,
  61. openParen = 270,
  62. closeParen = 271,
  63. openBracket = 272,
  64. closeBracket = 273,
  65. semicolon = 274,
  66. comma = 275,
  67. dot = 276,
  68. times = 277,
  69. minus = 278,
  70. equals = 279,
  71. plus = 280,
  72. bias_by_negative_one_half_scale_by_two = 281,
  73. bias_by_negative_one_half = 282,
  74. scale_by_one_half = 283,
  75. scale_by_two = 284,
  76. scale_by_four = 285,
  77. clamp_color_sum = 286,
  78. lerp = 287,
  79. fragment_rgb = 288,
  80. fragment_alpha = 289,
  81. floatValue = 290
  82. };
  83. #endif
  84. #define regVariable 258
  85. #define constVariable 259
  86. #define color_sum 260
  87. #define final_product 261
  88. #define expandString 262
  89. #define halfBiasString 263
  90. #define unsignedString 264
  91. #define unsignedInvertString 265
  92. #define muxString 266
  93. #define sumString 267
  94. #define rgb_portion 268
  95. #define alpha_portion 269
  96. #define openParen 270
  97. #define closeParen 271
  98. #define openBracket 272
  99. #define closeBracket 273
  100. #define semicolon 274
  101. #define comma 275
  102. #define dot 276
  103. #define times 277
  104. #define minus 278
  105. #define equals 279
  106. #define plus 280
  107. #define bias_by_negative_one_half_scale_by_two 281
  108. #define bias_by_negative_one_half 282
  109. #define scale_by_one_half 283
  110. #define scale_by_two 284
  111. #define scale_by_four 285
  112. #define clamp_color_sum 286
  113. #define lerp 287
  114. #define fragment_rgb 288
  115. #define fragment_alpha 289
  116. #define floatValue 290
  117. #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  118. #line 20 "rc1.0_grammar.y"
  119. typedef union YYSTYPE {
  120. int ival;
  121. float fval;
  122. RegisterEnum registerEnum;
  123. BiasScaleEnum biasScaleEnum;
  124. MappedRegisterStruct mappedRegisterStruct;
  125. ConstColorStruct constColorStruct;
  126. GeneralPortionStruct generalPortionStruct;
  127. GeneralFunctionStruct generalFunctionStruct;
  128. OpStruct opStruct;
  129. GeneralCombinerStruct generalCombinerStruct;
  130. GeneralCombinersStruct generalCombinersStruct;
  131. FinalProductStruct finalProductStruct;
  132. FinalRgbFunctionStruct finalRgbFunctionStruct;
  133. FinalAlphaFunctionStruct finalAlphaFunctionStruct;
  134. FinalCombinerStruct finalCombinerStruct;
  135. CombinersStruct combinersStruct;
  136. } YYSTYPE;
  137. /* Line 1240 of yacc.c. */
  138. #line 125 "_rc1.0_parser.h"
  139. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  140. # define YYSTYPE_IS_DECLARED 1
  141. # define YYSTYPE_IS_TRIVIAL 1
  142. #endif
  143. extern YYSTYPE rc10_lval;