| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- /*
- -----------------------------------------------------------------------------
- This source file is part of OGRE
- (Object-oriented Graphics Rendering Engine)
- For the latest info, see http://www.ogre3d.org/
- Copyright (c) 2000-2011 Torus Knot Software Ltd
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
- -----------------------------------------------------------------------------
- */
- /* A Bison parser, made by GNU Bison 1.875. */
- /* Skeleton parser for Yacc-like parsing with Bison,
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
- /* As a special exception, when this file is copied by Bison into a
- Bison output file, you may use that output file without restriction.
- This special exception was added by the Free Software Foundation
- in version 1.24 of Bison. */
- /* Tokens. */
- #ifndef YYTOKENTYPE
- # define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- VERTEX_SHADER = 258,
- ADD_INSTR = 259,
- DP3_INSTR = 260,
- DP4_INSTR = 261,
- DST_INSTR = 262,
- EXP_INSTR = 263,
- EXPP_INSTR = 264,
- FRC_INSTR = 265,
- LIT_INSTR = 266,
- LOG_INSTR = 267,
- LOGP_INSTR = 268,
- M3X2_INSTR = 269,
- M3X3_INSTR = 270,
- M3X4_INSTR = 271,
- M4X3_INSTR = 272,
- M4X4_INSTR = 273,
- MAD_INSTR = 274,
- MAX_INSTR = 275,
- MIN_INSTR = 276,
- MOV_INSTR = 277,
- MUL_INSTR = 278,
- NOP_INSTR = 279,
- RCP_INSTR = 280,
- RSQ_INSTR = 281,
- SGE_INSTR = 282,
- SLT_INSTR = 283,
- SUB_INSTR = 284,
- ILLEGAL = 285,
- UNKNOWN_STRING = 286,
- INTVAL = 287,
- REGISTER = 288,
- XYZW_MODIFIER = 289,
- COMMENT = 290
- };
- #endif
- #define VERTEX_SHADER 258
- #define ADD_INSTR 259
- #define DP3_INSTR 260
- #define DP4_INSTR 261
- #define DST_INSTR 262
- #define EXP_INSTR 263
- #define EXPP_INSTR 264
- #define FRC_INSTR 265
- #define LIT_INSTR 266
- #define LOG_INSTR 267
- #define LOGP_INSTR 268
- #define M3X2_INSTR 269
- #define M3X3_INSTR 270
- #define M3X4_INSTR 271
- #define M4X3_INSTR 272
- #define M4X4_INSTR 273
- #define MAD_INSTR 274
- #define MAX_INSTR 275
- #define MIN_INSTR 276
- #define MOV_INSTR 277
- #define MUL_INSTR 278
- #define NOP_INSTR 279
- #define RCP_INSTR 280
- #define RSQ_INSTR 281
- #define SGE_INSTR 282
- #define SLT_INSTR 283
- #define SUB_INSTR 284
- #define ILLEGAL 285
- #define UNKNOWN_STRING 286
- #define INTVAL 287
- #define REGISTER 288
- #define XYZW_MODIFIER 289
- #define COMMENT 290
- #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
- #line 27 "vs1.0_grammar.y"
- typedef union YYSTYPE {
- int ival;
- unsigned int lval;
- float fval;
- char mask[4];
- char *comment;
- VS10Reg reg;
- VS10InstPtr inst;
- VS10InstListPtr instList;
- } YYSTYPE;
- /* Line 1240 of yacc.c. */
- #line 117 "_vs1.0_parser.h"
- # define yystype YYSTYPE /* obsolescent; will be withdrawn */
- # define YYSTYPE_IS_DECLARED 1
- # define YYSTYPE_IS_TRIVIAL 1
- #endif
- extern YYSTYPE vs10_lval;
|