📄 _rc1.0_parser.cpp
字号:
yyval.combinersStruct = combinersStruct;
;
break;}
case 5:
#line 98 "rc1.0_grammar.y"
{
GeneralCombinersStruct generalCombinersStruct;
generalCombinersStruct.Init();
CombinersStruct combinersStruct;
combinersStruct.Init(generalCombinersStruct, yyvsp[0].finalCombinerStruct, yyvsp[-1].constColorStruct);
yyval.combinersStruct = combinersStruct;
;
break;}
case 6:
#line 106 "rc1.0_grammar.y"
{
GeneralCombinersStruct generalCombinersStruct;
generalCombinersStruct.Init();
CombinersStruct combinersStruct;
combinersStruct.Init(generalCombinersStruct, yyvsp[0].finalCombinerStruct, yyvsp[-2].constColorStruct, yyvsp[-1].constColorStruct);
yyval.combinersStruct = combinersStruct;
;
break;}
case 7:
#line 114 "rc1.0_grammar.y"
{
GeneralCombinersStruct generalCombinersStruct;
generalCombinersStruct.Init();
CombinersStruct combinersStruct;
combinersStruct.Init(generalCombinersStruct, yyvsp[0].finalCombinerStruct);
yyval.combinersStruct = combinersStruct;
;
break;}
case 8:
#line 124 "rc1.0_grammar.y"
{
ConstColorStruct constColorStruct;
constColorStruct.Init(yyvsp[-11].registerEnum, yyvsp[-8].fval, yyvsp[-6].fval, yyvsp[-4].fval, yyvsp[-2].fval);
yyval.constColorStruct = constColorStruct;
;
break;}
case 9:
#line 133 "rc1.0_grammar.y"
{
yyvsp[-1].generalCombinersStruct += yyvsp[0].generalCombinerStruct;
yyval.generalCombinersStruct = yyvsp[-1].generalCombinersStruct;
;
break;}
case 10:
#line 138 "rc1.0_grammar.y"
{
GeneralCombinersStruct generalCombinersStruct;
generalCombinersStruct.Init(yyvsp[0].generalCombinerStruct);
yyval.generalCombinersStruct = generalCombinersStruct;
;
break;}
case 11:
#line 146 "rc1.0_grammar.y"
{
GeneralCombinerStruct generalCombinerStruct;
generalCombinerStruct.Init(yyvsp[-2].generalPortionStruct, yyvsp[-1].generalPortionStruct);
yyval.generalCombinerStruct = generalCombinerStruct;
;
break;}
case 12:
#line 152 "rc1.0_grammar.y"
{
GeneralCombinerStruct generalCombinerStruct;
generalCombinerStruct.Init(yyvsp[-2].generalPortionStruct, yyvsp[-1].generalPortionStruct, yyvsp[-3].constColorStruct);
yyval.generalCombinerStruct = generalCombinerStruct;
;
break;}
case 13:
#line 158 "rc1.0_grammar.y"
{
GeneralCombinerStruct generalCombinerStruct;
generalCombinerStruct.Init(yyvsp[-2].generalPortionStruct, yyvsp[-1].generalPortionStruct, yyvsp[-4].constColorStruct, yyvsp[-3].constColorStruct);
yyval.generalCombinerStruct = generalCombinerStruct;
;
break;}
case 14:
#line 164 "rc1.0_grammar.y"
{
GeneralCombinerStruct generalCombinerStruct;
generalCombinerStruct.Init(yyvsp[-1].generalPortionStruct);
yyval.generalCombinerStruct = generalCombinerStruct;
;
break;}
case 15:
#line 170 "rc1.0_grammar.y"
{
GeneralCombinerStruct generalCombinerStruct;
generalCombinerStruct.Init(yyvsp[-1].generalPortionStruct, yyvsp[-2].constColorStruct);
yyval.generalCombinerStruct = generalCombinerStruct;
;
break;}
case 16:
#line 176 "rc1.0_grammar.y"
{
GeneralCombinerStruct generalCombinerStruct;
generalCombinerStruct.Init(yyvsp[-1].generalPortionStruct, yyvsp[-3].constColorStruct, yyvsp[-2].constColorStruct);
yyval.generalCombinerStruct = generalCombinerStruct;
;
break;}
case 17:
#line 184 "rc1.0_grammar.y"
{
GeneralPortionStruct generalPortionStruct;
generalPortionStruct.Init(yyvsp[-4].ival, yyvsp[-2].generalFunctionStruct, yyvsp[-1].biasScaleEnum);
yyval.generalPortionStruct = generalPortionStruct;
;
break;}
case 18:
#line 190 "rc1.0_grammar.y"
{
BiasScaleEnum noScale;
noScale.word = RCP_SCALE_BY_ONE;
GeneralPortionStruct generalPortionStruct;
generalPortionStruct.Init(yyvsp[-3].ival, yyvsp[-1].generalFunctionStruct, noScale);
yyval.generalPortionStruct = generalPortionStruct;
;
break;}
case 19:
#line 200 "rc1.0_grammar.y"
{
yyval.ival = yyvsp[0].ival;
;
break;}
case 20:
#line 204 "rc1.0_grammar.y"
{
yyval.ival = yyvsp[0].ival;
;
break;}
case 21:
#line 210 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[0].registerEnum, GL_SIGNED_IDENTITY_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 22:
#line 216 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[0].registerEnum, GL_SIGNED_NEGATE_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 23:
#line 222 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_EXPAND_NORMAL_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 24:
#line 228 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_EXPAND_NEGATE_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 25:
#line 234 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_HALF_BIAS_NORMAL_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 26:
#line 240 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_HALF_BIAS_NEGATE_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 27:
#line 246 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_UNSIGNED_IDENTITY_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 28:
#line 252 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_UNSIGNED_INVERT_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 29:
#line 260 "rc1.0_grammar.y"
{
GeneralFunctionStruct generalFunction;
generalFunction.Init(yyvsp[-1].opStruct, yyvsp[0].opStruct);
yyval.generalFunctionStruct = generalFunction;
;
break;}
case 30:
#line 266 "rc1.0_grammar.y"
{
GeneralFunctionStruct generalFunction;
generalFunction.Init(yyvsp[-1].opStruct, yyvsp[0].opStruct);
yyval.generalFunctionStruct = generalFunction;
;
break;}
case 31:
#line 272 "rc1.0_grammar.y"
{
GeneralFunctionStruct generalFunction;
generalFunction.Init(yyvsp[-1].opStruct, yyvsp[0].opStruct);
yyval.generalFunctionStruct = generalFunction;
;
break;}
case 32:
#line 278 "rc1.0_grammar.y"
{
GeneralFunctionStruct generalFunction;
generalFunction.Init(yyvsp[0].opStruct);
yyval.generalFunctionStruct = generalFunction;
;
break;}
case 33:
#line 284 "rc1.0_grammar.y"
{
GeneralFunctionStruct generalFunction;
generalFunction.Init(yyvsp[-1].opStruct, yyvsp[0].opStruct);
yyval.generalFunctionStruct = generalFunction;
;
break;}
case 34:
#line 290 "rc1.0_grammar.y"
{
GeneralFunctionStruct generalFunction;
generalFunction.Init(yyvsp[-2].opStruct, yyvsp[-1].opStruct, yyvsp[0].opStruct);
yyval.generalFunctionStruct = generalFunction;
;
break;}
case 35:
#line 296 "rc1.0_grammar.y"
{
GeneralFunctionStruct generalFunction;
generalFunction.Init(yyvsp[-2].opStruct, yyvsp[-1].opStruct, yyvsp[0].opStruct);
yyval.generalFunctionStruct = generalFunction;
;
break;}
case 36:
#line 302 "rc1.0_grammar.y"
{
GeneralFunctionStruct generalFunction;
generalFunction.Init(yyvsp[0].opStruct);
yyval.generalFunctionStruct = generalFunction;
;
break;}
case 37:
#line 310 "rc1.0_grammar.y"
{
OpStruct dotFunction;
dotFunction.Init(RCP_DOT, yyvsp[-5].registerEnum, yyvsp[-3].mappedRegisterStruct, yyvsp[-1].mappedRegisterStruct);
yyval.opStruct = dotFunction;
;
break;}
case 38:
#line 318 "rc1.0_grammar.y"
{
OpStruct mulFunction;
mulFunction.Init(RCP_MUL, yyvsp[-5].registerEnum, yyvsp[-3].mappedRegisterStruct, yyvsp[-1].mappedRegisterStruct);
yyval.opStruct = mulFunction;
;
break;}
case 39:
#line 324 "rc1.0_grammar.y"
{
RegisterEnum zero;
zero.word = RCP_ZERO;
MappedRegisterStruct one;
one.Init(zero, GL_UNSIGNED_INVERT_NV);
OpStruct mulFunction;
mulFunction.Init(RCP_MUL, yyvsp[-3].registerEnum, yyvsp[-1].mappedRegisterStruct, one);
yyval.opStruct = mulFunction;
;
break;}
case 40:
#line 336 "rc1.0_grammar.y"
{
OpStruct muxFunction;
muxFunction.Init(RCP_MUX, yyvsp[-5].registerEnum);
yyval.opStruct = muxFunction;
;
break;}
case 41:
#line 344 "rc1.0_grammar.y"
{
OpStruct sumFunction;
sumFunction.Init(RCP_SUM, yyvsp[-5].registerEnum);
yyval.opStruct = sumFunction;
;
break;}
case 42:
#line 352 "rc1.0_grammar.y"
{
yyval.biasScaleEnum = yyvsp[-3].biasScaleEnum;
;
break;}
case 43:
#line 356 "rc1.0_grammar.y"
{
yyval.biasScaleEnum = yyvsp[-3].biasScaleEnum;
;
break;}
case 44:
#line 360 "rc1.0_grammar.y"
{
yyval.biasScaleEnum = yyvsp[-3].biasScaleEnum;
;
break;}
case 45:
#line 364 "rc1.0_grammar.y"
{
yyval.biasScaleEnum = yyvsp[-3].biasScaleEnum;
;
break;}
case 46:
#line 368 "rc1.0_grammar.y"
{
yyval.biasScaleEnum = yyvsp[-3].biasScaleEnum;
;
break;}
case 47:
#line 374 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[0].registerEnum, GL_UNSIGNED_IDENTITY_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 48:
#line 380 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_UNSIGNED_IDENTITY_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 49:
#line 386 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_UNSIGNED_INVERT_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 50:
#line 392 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[0].registerEnum);
yyval.mappedRegisterStruct = reg;
;
break;}
case 51:
#line 398 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_UNSIGNED_IDENTITY_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 52:
#line 404 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_UNSIGNED_INVERT_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 53:
#line 410 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[0].registerEnum);
yyval.mappedRegisterStruct = reg;
;
break;}
case 54:
#line 416 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_UNSIGNED_IDENTITY_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 55:
#line 422 "rc1.0_grammar.y"
{
MappedRegisterStruct reg;
reg.Init(yyvsp[-1].registerEnum, GL_UNSIGNED_INVERT_NV);
yyval.mappedRegisterStruct = reg;
;
break;}
case 56:
#line 430 "rc1.0_grammar.y"
{
FinalCombinerStruct finalCombinerStruct;
finalCombinerStruct.Init(yyvsp[0].finalRgbFunctionStruct, yyvsp[-1].finalAlphaFunctionStruct, false);
yyval.finalCombinerStruct = finalCombinerStruct;
;
break;}
case 57:
#line 436 "rc1.0_grammar.y"
{
FinalCombinerStruct finalCombinerStruct;
finalCombinerStruct.Init(yyvsp[0].finalRgbFunctionStruct, yyvsp[-1].finalAlphaFunctionStruct, true);
yyval.finalCombinerStruct = finalCombinerStruct;
;
break;}
case 58:
#line 442 "rc1.0_grammar.y"
{
FinalCombinerStruct finalCombinerStruct;
finalCombinerStruct.Init(yyvsp[0].finalRgbFunctionStruct, yyvsp[-1].finalAlphaFunctionStruct, false, yyvsp[-2].finalProductStruct);
yyval.finalCombinerStruct = finalCombinerStruct;
;
break;}
case 59:
#line 448 "rc1.0_grammar.y"
{
FinalCombinerStruct finalCombinerStruct;
finalCombinerStruct.Init(yyvsp[0].finalRgbFunctionStruct, yyvsp[-1].finalAlphaFunctionStruct, true, yyvsp[-2].finalProductStruct);
yyval.finalCombinerStruct = finalCombinerStruct;
;
break;}
case 60:
#line 454 "rc1.0_grammar.y"
{
FinalCombinerStruct finalCombinerStruct;
finalCombinerStruct.Init(yyvsp[0].finalRgbFunctionStruct, yyvsp[-1].finalAlphaFunctionStruct, true, yyvsp[-3].finalProductStruct);
yyval.finalCombinerStruct = finalCombinerStruct;
;
break;}
case 61:
#line 461 "rc1.0_grammar.y"
{
FinalCombinerStruct finalCombinerStruct;
finalCombinerStruct.Init(yyvsp[-1].finalRgbFunctionStruct, yyvsp[0].finalAlphaFunctionStruct, false);
yyval.finalCombinerStruct = finalCombinerStruct;
;
break;}
case 62:
#line 467 "rc1.0_grammar.y"
{
FinalCombinerStruct finalCombinerStruct;
finalCombinerStruct.Init(yyvsp[-1].finalRgbFunctionStruct, yyvsp[0].finalAlphaFunctionStruct, true);
yyval.finalCombinerStruct = finalCombinerStruct;
;
break;}
case 63:
#line 473 "rc1.0_grammar.y"
{
FinalCombinerStruct finalCombinerStruct;
finalCombinerStruct.Init(yyvsp[-1].finalRgbFunctionStruct, yyvsp[0].finalAlphaFunctionStruct, false, yyvsp[-2].finalProductStruct);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -