[692] | 1 | /* A Bison parser, made by GNU Bison 1.875. */
|
---|
| 2 |
|
---|
| 3 | /* Skeleton parser for Yacc-like parsing with Bison,
|
---|
| 4 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
|
---|
| 5 |
|
---|
| 6 | This program is free software; you can redistribute it and/or modify
|
---|
| 7 | it under the terms of the GNU General Public License as published by
|
---|
| 8 | the Free Software Foundation; either version 2, or (at your option)
|
---|
| 9 | any later version.
|
---|
| 10 |
|
---|
| 11 | This program is distributed in the hope that it will be useful,
|
---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 14 | GNU General Public License for more details.
|
---|
| 15 |
|
---|
| 16 | You should have received a copy of the GNU General Public License
|
---|
| 17 | along with this program; if not, write to the Free Software
|
---|
| 18 | Foundation, Inc., 59 Temple Place - Suite 330,
|
---|
| 19 | Boston, MA 02111-1307, USA. */
|
---|
| 20 |
|
---|
| 21 | /* As a special exception, when this file is copied by Bison into a
|
---|
| 22 | Bison output file, you may use that output file without restriction.
|
---|
| 23 | This special exception was added by the Free Software Foundation
|
---|
| 24 | in version 1.24 of Bison. */
|
---|
| 25 |
|
---|
| 26 | /* Tokens. */
|
---|
| 27 | #ifndef YYTOKENTYPE
|
---|
| 28 | # define YYTOKENTYPE
|
---|
| 29 | /* Put the tokens into the symbol table, so that GDB and other debuggers
|
---|
| 30 | know about them. */
|
---|
| 31 | enum yytokentype {
|
---|
| 32 | VERTEX_SHADER = 258,
|
---|
| 33 | ADD_INSTR = 259,
|
---|
| 34 | DP3_INSTR = 260,
|
---|
| 35 | DP4_INSTR = 261,
|
---|
| 36 | DST_INSTR = 262,
|
---|
| 37 | EXP_INSTR = 263,
|
---|
| 38 | EXPP_INSTR = 264,
|
---|
| 39 | FRC_INSTR = 265,
|
---|
| 40 | LIT_INSTR = 266,
|
---|
| 41 | LOG_INSTR = 267,
|
---|
| 42 | LOGP_INSTR = 268,
|
---|
| 43 | M3X2_INSTR = 269,
|
---|
| 44 | M3X3_INSTR = 270,
|
---|
| 45 | M3X4_INSTR = 271,
|
---|
| 46 | M4X3_INSTR = 272,
|
---|
| 47 | M4X4_INSTR = 273,
|
---|
| 48 | MAD_INSTR = 274,
|
---|
| 49 | MAX_INSTR = 275,
|
---|
| 50 | MIN_INSTR = 276,
|
---|
| 51 | MOV_INSTR = 277,
|
---|
| 52 | MUL_INSTR = 278,
|
---|
| 53 | NOP_INSTR = 279,
|
---|
| 54 | RCP_INSTR = 280,
|
---|
| 55 | RSQ_INSTR = 281,
|
---|
| 56 | SGE_INSTR = 282,
|
---|
| 57 | SLT_INSTR = 283,
|
---|
| 58 | SUB_INSTR = 284,
|
---|
| 59 | ILLEGAL = 285,
|
---|
| 60 | UNKNOWN_STRING = 286,
|
---|
| 61 | INTVAL = 287,
|
---|
| 62 | REGISTER = 288,
|
---|
| 63 | XYZW_MODIFIER = 289,
|
---|
| 64 | COMMENT = 290
|
---|
| 65 | };
|
---|
| 66 | #endif
|
---|
| 67 | #define VERTEX_SHADER 258
|
---|
| 68 | #define ADD_INSTR 259
|
---|
| 69 | #define DP3_INSTR 260
|
---|
| 70 | #define DP4_INSTR 261
|
---|
| 71 | #define DST_INSTR 262
|
---|
| 72 | #define EXP_INSTR 263
|
---|
| 73 | #define EXPP_INSTR 264
|
---|
| 74 | #define FRC_INSTR 265
|
---|
| 75 | #define LIT_INSTR 266
|
---|
| 76 | #define LOG_INSTR 267
|
---|
| 77 | #define LOGP_INSTR 268
|
---|
| 78 | #define M3X2_INSTR 269
|
---|
| 79 | #define M3X3_INSTR 270
|
---|
| 80 | #define M3X4_INSTR 271
|
---|
| 81 | #define M4X3_INSTR 272
|
---|
| 82 | #define M4X4_INSTR 273
|
---|
| 83 | #define MAD_INSTR 274
|
---|
| 84 | #define MAX_INSTR 275
|
---|
| 85 | #define MIN_INSTR 276
|
---|
| 86 | #define MOV_INSTR 277
|
---|
| 87 | #define MUL_INSTR 278
|
---|
| 88 | #define NOP_INSTR 279
|
---|
| 89 | #define RCP_INSTR 280
|
---|
| 90 | #define RSQ_INSTR 281
|
---|
| 91 | #define SGE_INSTR 282
|
---|
| 92 | #define SLT_INSTR 283
|
---|
| 93 | #define SUB_INSTR 284
|
---|
| 94 | #define ILLEGAL 285
|
---|
| 95 | #define UNKNOWN_STRING 286
|
---|
| 96 | #define INTVAL 287
|
---|
| 97 | #define REGISTER 288
|
---|
| 98 | #define XYZW_MODIFIER 289
|
---|
| 99 | #define COMMENT 290
|
---|
| 100 |
|
---|
| 101 |
|
---|
| 102 |
|
---|
| 103 |
|
---|
| 104 | #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
---|
| 105 | #line 27 "vs1.0_grammar.y"
|
---|
| 106 | typedef union YYSTYPE {
|
---|
| 107 | int ival;
|
---|
| 108 | unsigned int lval;
|
---|
| 109 | float fval;
|
---|
| 110 | char mask[4];
|
---|
| 111 | char *comment;
|
---|
| 112 | VS10Reg reg;
|
---|
| 113 | VS10InstPtr inst;
|
---|
| 114 | VS10InstListPtr instList;
|
---|
| 115 | } YYSTYPE;
|
---|
| 116 | /* Line 1240 of yacc.c. */
|
---|
| 117 | #line 117 "_vs1.0_parser.h"
|
---|
| 118 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
---|
| 119 | # define YYSTYPE_IS_DECLARED 1
|
---|
| 120 | # define YYSTYPE_IS_TRIVIAL 1
|
---|
| 121 | #endif
|
---|
| 122 |
|
---|
| 123 | extern YYSTYPE vs10_lval;
|
---|
| 124 |
|
---|
| 125 |
|
---|
| 126 |
|
---|