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