[system] / trunk / pg / lib / Parser / UOP.pm Repository:
ViewVC logotype

Diff of /trunk/pg/lib/Parser/UOP.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5508 Revision 5509
15 my $def = $context->{operators}{$uop}; 15 my $def = $context->{operators}{$uop};
16 my $UOP = bless { 16 my $UOP = bless {
17 uop => $uop, op => $op, 17 uop => $uop, op => $op,
18 def => $def, ref => $ref, equation => $equation 18 def => $def, ref => $ref, equation => $equation
19 }, $def->{class}; 19 }, $def->{class};
20 $UOP->weaken;
20 $UOP->{isConstant} = 1 if $op->{isConstant}; 21 $UOP->{isConstant} = 1 if $op->{isConstant};
21 $UOP->_check; 22 $UOP->_check;
22 $UOP = $UOP->Item("Value")->new($equation,[$UOP->eval]) 23 $UOP = $UOP->Item("Value")->new($equation,[$UOP->eval])
23 if $op->{isConstant} && (!$UOP->isNeg || $op->isNeg) && 24 if $op->{isConstant} && (!$UOP->isNeg || $op->isNeg) &&
24 ($context->flag('reduceConstants') || $op->{isInfinity}); 25 ($context->flag('reduceConstants') || $op->{isInfinity});

Legend:
Removed from v.5508  
changed lines
  Added in v.5509

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9