| 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 | |
|---|
| 7 | Copyright (c) 2000-2006 Torus Knot Software Ltd |
|---|
| 8 | Also see acknowledgements in Readme.html |
|---|
| 9 | |
|---|
| 10 | This program is free software; you can redistribute it and/or modify it under |
|---|
| 11 | the terms of the GNU Lesser General Public License as published by the Free Software |
|---|
| 12 | Foundation; either version 2 of the License, or (at your option) any later |
|---|
| 13 | version. |
|---|
| 14 | |
|---|
| 15 | This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 16 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|---|
| 17 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
|---|
| 18 | |
|---|
| 19 | You should have received a copy of the GNU Lesser General Public License along with |
|---|
| 20 | this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
|---|
| 21 | Place - Suite 330, Boston, MA 02111-1307, USA, or go to |
|---|
| 22 | http://www.gnu.org/copyleft/lesser.txt. |
|---|
| 23 | |
|---|
| 24 | You may alternatively use this source under the terms of a specific version of |
|---|
| 25 | the OGRE Unrestricted License provided you have obtained such a license from |
|---|
| 26 | Torus Knot Software Ltd. |
|---|
| 27 | ----------------------------------------------------------------------------- |
|---|
| 28 | */ |
|---|
| 29 | /* A Bison parser, made by GNU Bison 1.875. */ |
|---|
| 30 | |
|---|
| 31 | /* Skeleton parser for Yacc-like parsing with Bison, |
|---|
| 32 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc. |
|---|
| 33 | |
|---|
| 34 | This program is free software; you can redistribute it and/or modify |
|---|
| 35 | it under the terms of the GNU General Public License as published by |
|---|
| 36 | the Free Software Foundation; either version 2, or (at your option) |
|---|
| 37 | any later version. |
|---|
| 38 | |
|---|
| 39 | This program is distributed in the hope that it will be useful, |
|---|
| 40 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 41 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 42 | GNU General Public License for more details. |
|---|
| 43 | |
|---|
| 44 | You should have received a copy of the GNU General Public License |
|---|
| 45 | along with this program; if not, write to the Free Software |
|---|
| 46 | Foundation, Inc., 59 Temple Place - Suite 330, |
|---|
| 47 | Boston, MA 02111-1307, USA. */ |
|---|
| 48 | |
|---|
| 49 | /* As a special exception, when this file is copied by Bison into a |
|---|
| 50 | Bison output file, you may use that output file without restriction. |
|---|
| 51 | This special exception was added by the Free Software Foundation |
|---|
| 52 | in version 1.24 of Bison. */ |
|---|
| 53 | |
|---|
| 54 | /* Tokens. */ |
|---|
| 55 | #ifndef YYTOKENTYPE |
|---|
| 56 | # define YYTOKENTYPE |
|---|
| 57 | /* Put the tokens into the symbol table, so that GDB and other debuggers |
|---|
| 58 | know about them. */ |
|---|
| 59 | enum yytokentype { |
|---|
| 60 | floatValue = 258, |
|---|
| 61 | gequal = 259, |
|---|
| 62 | less = 260, |
|---|
| 63 | texVariable = 261, |
|---|
| 64 | expandString = 262, |
|---|
| 65 | openParen = 263, |
|---|
| 66 | closeParen = 264, |
|---|
| 67 | semicolon = 265, |
|---|
| 68 | comma = 266, |
|---|
| 69 | nop = 267, |
|---|
| 70 | texture_1d = 268, |
|---|
| 71 | texture_2d = 269, |
|---|
| 72 | texture_rectangle = 270, |
|---|
| 73 | texture_3d = 271, |
|---|
| 74 | texture_cube_map = 272, |
|---|
| 75 | cull_fragment = 273, |
|---|
| 76 | pass_through = 274, |
|---|
| 77 | offset_2d_scale = 275, |
|---|
| 78 | offset_2d = 276, |
|---|
| 79 | offset_rectangle_scale = 277, |
|---|
| 80 | offset_rectangle = 278, |
|---|
| 81 | dependent_ar = 279, |
|---|
| 82 | dependent_gb = 280, |
|---|
| 83 | dot_product_2d_1of2 = 281, |
|---|
| 84 | dot_product_2d_2of2 = 282, |
|---|
| 85 | dot_product_rectangle_1of2 = 283, |
|---|
| 86 | dot_product_rectangle_2of2 = 284, |
|---|
| 87 | dot_product_depth_replace_1of2 = 285, |
|---|
| 88 | dot_product_depth_replace_2of2 = 286, |
|---|
| 89 | dot_product_3d_1of3 = 287, |
|---|
| 90 | dot_product_3d_2of3 = 288, |
|---|
| 91 | dot_product_3d_3of3 = 289, |
|---|
| 92 | dot_product_cube_map_1of3 = 290, |
|---|
| 93 | dot_product_cube_map_2of3 = 291, |
|---|
| 94 | dot_product_cube_map_3of3 = 292, |
|---|
| 95 | dot_product_reflect_cube_map_eye_from_qs_1of3 = 293, |
|---|
| 96 | dot_product_reflect_cube_map_eye_from_qs_2of3 = 294, |
|---|
| 97 | dot_product_reflect_cube_map_eye_from_qs_3of3 = 295, |
|---|
| 98 | dot_product_reflect_cube_map_const_eye_1of3 = 296, |
|---|
| 99 | dot_product_reflect_cube_map_const_eye_2of3 = 297, |
|---|
| 100 | dot_product_reflect_cube_map_const_eye_3of3 = 298, |
|---|
| 101 | dot_product_cube_map_and_reflect_cube_map_eye_from_qs_1of3 = 299, |
|---|
| 102 | dot_product_cube_map_and_reflect_cube_map_eye_from_qs_2of3 = 300, |
|---|
| 103 | dot_product_cube_map_and_reflect_cube_map_eye_from_qs_3of3 = 301, |
|---|
| 104 | dot_product_cube_map_and_reflect_cube_map_const_eye_1of3 = 302, |
|---|
| 105 | dot_product_cube_map_and_reflect_cube_map_const_eye_2of3 = 303, |
|---|
| 106 | dot_product_cube_map_and_reflect_cube_map_const_eye_3of3 = 304 |
|---|
| 107 | }; |
|---|
| 108 | #endif |
|---|
| 109 | #define floatValue 258 |
|---|
| 110 | #define gequal 259 |
|---|
| 111 | #define less 260 |
|---|
| 112 | #define texVariable 261 |
|---|
| 113 | #define expandString 262 |
|---|
| 114 | #define openParen 263 |
|---|
| 115 | #define closeParen 264 |
|---|
| 116 | #define semicolon 265 |
|---|
| 117 | #define comma 266 |
|---|
| 118 | #define nop 267 |
|---|
| 119 | #define texture_1d 268 |
|---|
| 120 | #define texture_2d 269 |
|---|
| 121 | #define texture_rectangle 270 |
|---|
| 122 | #define texture_3d 271 |
|---|
| 123 | #define texture_cube_map 272 |
|---|
| 124 | #define cull_fragment 273 |
|---|
| 125 | #define pass_through 274 |
|---|
| 126 | #define offset_2d_scale 275 |
|---|
| 127 | #define offset_2d 276 |
|---|
| 128 | #define offset_rectangle_scale 277 |
|---|
| 129 | #define offset_rectangle 278 |
|---|
| 130 | #define dependent_ar 279 |
|---|
| 131 | #define dependent_gb 280 |
|---|
| 132 | #define dot_product_2d_1of2 281 |
|---|
| 133 | #define dot_product_2d_2of2 282 |
|---|
| 134 | #define dot_product_rectangle_1of2 283 |
|---|
| 135 | #define dot_product_rectangle_2of2 284 |
|---|
| 136 | #define dot_product_depth_replace_1of2 285 |
|---|
| 137 | #define dot_product_depth_replace_2of2 286 |
|---|
| 138 | #define dot_product_3d_1of3 287 |
|---|
| 139 | #define dot_product_3d_2of3 288 |
|---|
| 140 | #define dot_product_3d_3of3 289 |
|---|
| 141 | #define dot_product_cube_map_1of3 290 |
|---|
| 142 | #define dot_product_cube_map_2of3 291 |
|---|
| 143 | #define dot_product_cube_map_3of3 292 |
|---|
| 144 | #define dot_product_reflect_cube_map_eye_from_qs_1of3 293 |
|---|
| 145 | #define dot_product_reflect_cube_map_eye_from_qs_2of3 294 |
|---|
| 146 | #define dot_product_reflect_cube_map_eye_from_qs_3of3 295 |
|---|
| 147 | #define dot_product_reflect_cube_map_const_eye_1of3 296 |
|---|
| 148 | #define dot_product_reflect_cube_map_const_eye_2of3 297 |
|---|
| 149 | #define dot_product_reflect_cube_map_const_eye_3of3 298 |
|---|
| 150 | #define dot_product_cube_map_and_reflect_cube_map_eye_from_qs_1of3 299 |
|---|
| 151 | #define dot_product_cube_map_and_reflect_cube_map_eye_from_qs_2of3 300 |
|---|
| 152 | #define dot_product_cube_map_and_reflect_cube_map_eye_from_qs_3of3 301 |
|---|
| 153 | #define dot_product_cube_map_and_reflect_cube_map_const_eye_1of3 302 |
|---|
| 154 | #define dot_product_cube_map_and_reflect_cube_map_const_eye_2of3 303 |
|---|
| 155 | #define dot_product_cube_map_and_reflect_cube_map_const_eye_3of3 304 |
|---|
| 156 | |
|---|
| 157 | |
|---|
| 158 | |
|---|
| 159 | |
|---|
| 160 | #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) |
|---|
| 161 | #line 18 "ts1.0_grammar.y" |
|---|
| 162 | typedef union YYSTYPE { |
|---|
| 163 | float fval; |
|---|
| 164 | InstPtr inst; |
|---|
| 165 | InstListPtr instList; |
|---|
| 166 | MappedVariablePtr variable; |
|---|
| 167 | } YYSTYPE; |
|---|
| 168 | /* Line 1240 of yacc.c. */ |
|---|
| 169 | #line 141 "_ts1.0_parser.h" |
|---|
| 170 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
|---|
| 171 | # define YYSTYPE_IS_DECLARED 1 |
|---|
| 172 | # define YYSTYPE_IS_TRIVIAL 1 |
|---|
| 173 | #endif |
|---|
| 174 | |
|---|
| 175 | extern YYSTYPE ts10_lval; |
|---|
| 176 | |
|---|
| 177 | |
|---|
| 178 | |
|---|