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