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 | VERTEX_SHADER = 258, |
---|
61 | ADD_INSTR = 259, |
---|
62 | DP3_INSTR = 260, |
---|
63 | DP4_INSTR = 261, |
---|
64 | DST_INSTR = 262, |
---|
65 | EXP_INSTR = 263, |
---|
66 | EXPP_INSTR = 264, |
---|
67 | FRC_INSTR = 265, |
---|
68 | LIT_INSTR = 266, |
---|
69 | LOG_INSTR = 267, |
---|
70 | LOGP_INSTR = 268, |
---|
71 | M3X2_INSTR = 269, |
---|
72 | M3X3_INSTR = 270, |
---|
73 | M3X4_INSTR = 271, |
---|
74 | M4X3_INSTR = 272, |
---|
75 | M4X4_INSTR = 273, |
---|
76 | MAD_INSTR = 274, |
---|
77 | MAX_INSTR = 275, |
---|
78 | MIN_INSTR = 276, |
---|
79 | MOV_INSTR = 277, |
---|
80 | MUL_INSTR = 278, |
---|
81 | NOP_INSTR = 279, |
---|
82 | RCP_INSTR = 280, |
---|
83 | RSQ_INSTR = 281, |
---|
84 | SGE_INSTR = 282, |
---|
85 | SLT_INSTR = 283, |
---|
86 | SUB_INSTR = 284, |
---|
87 | ILLEGAL = 285, |
---|
88 | UNKNOWN_STRING = 286, |
---|
89 | INTVAL = 287, |
---|
90 | REGISTER = 288, |
---|
91 | XYZW_MODIFIER = 289, |
---|
92 | COMMENT = 290 |
---|
93 | }; |
---|
94 | #endif |
---|
95 | #define VERTEX_SHADER 258 |
---|
96 | #define ADD_INSTR 259 |
---|
97 | #define DP3_INSTR 260 |
---|
98 | #define DP4_INSTR 261 |
---|
99 | #define DST_INSTR 262 |
---|
100 | #define EXP_INSTR 263 |
---|
101 | #define EXPP_INSTR 264 |
---|
102 | #define FRC_INSTR 265 |
---|
103 | #define LIT_INSTR 266 |
---|
104 | #define LOG_INSTR 267 |
---|
105 | #define LOGP_INSTR 268 |
---|
106 | #define M3X2_INSTR 269 |
---|
107 | #define M3X3_INSTR 270 |
---|
108 | #define M3X4_INSTR 271 |
---|
109 | #define M4X3_INSTR 272 |
---|
110 | #define M4X4_INSTR 273 |
---|
111 | #define MAD_INSTR 274 |
---|
112 | #define MAX_INSTR 275 |
---|
113 | #define MIN_INSTR 276 |
---|
114 | #define MOV_INSTR 277 |
---|
115 | #define MUL_INSTR 278 |
---|
116 | #define NOP_INSTR 279 |
---|
117 | #define RCP_INSTR 280 |
---|
118 | #define RSQ_INSTR 281 |
---|
119 | #define SGE_INSTR 282 |
---|
120 | #define SLT_INSTR 283 |
---|
121 | #define SUB_INSTR 284 |
---|
122 | #define ILLEGAL 285 |
---|
123 | #define UNKNOWN_STRING 286 |
---|
124 | #define INTVAL 287 |
---|
125 | #define REGISTER 288 |
---|
126 | #define XYZW_MODIFIER 289 |
---|
127 | #define COMMENT 290 |
---|
128 | |
---|
129 | |
---|
130 | |
---|
131 | |
---|
132 | #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) |
---|
133 | #line 27 "vs1.0_grammar.y" |
---|
134 | typedef union YYSTYPE { |
---|
135 | int ival; |
---|
136 | unsigned int lval; |
---|
137 | float fval; |
---|
138 | char mask[4]; |
---|
139 | char *comment; |
---|
140 | VS10Reg reg; |
---|
141 | VS10InstPtr inst; |
---|
142 | VS10InstListPtr instList; |
---|
143 | } YYSTYPE; |
---|
144 | /* Line 1240 of yacc.c. */ |
---|
145 | #line 117 "_vs1.0_parser.h" |
---|
146 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
---|
147 | # define YYSTYPE_IS_DECLARED 1 |
---|
148 | # define YYSTYPE_IS_TRIVIAL 1 |
---|
149 | #endif |
---|
150 | |
---|
151 | extern YYSTYPE vs10_lval; |
---|
152 | |
---|
153 | |
---|
154 | |
---|