[system] / trunk / pg / macros / contextLimitedComplex.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/contextLimitedComplex.pl

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

Revision 5392 Revision 5441
228 # Build the new context that calls the 228 # Build the new context that calls the
229 # above classes rather than the usual ones 229 # above classes rather than the usual ones
230 # 230 #
231 231
232 my $context = $main::context{LimitedComplex} = Parser::Context->getCopy("Complex"); 232 my $context = $main::context{LimitedComplex} = Parser::Context->getCopy("Complex");
233 $context->{name} = "LimitedComplex";
233 $context->operators->set( 234 $context->operators->set(
234 '+' => {class => 'LimitedComplex::BOP::add'}, 235 '+' => {class => 'LimitedComplex::BOP::add'},
235 '-' => {class => 'LimitedComplex::BOP::subtract'}, 236 '-' => {class => 'LimitedComplex::BOP::subtract'},
236 '*' => {class => 'LimitedComplex::BOP::multiply'}, 237 '*' => {class => 'LimitedComplex::BOP::multiply'},
237 '* ' => {class => 'LimitedComplex::BOP::multiply'}, 238 '* ' => {class => 'LimitedComplex::BOP::multiply'},

Legend:
Removed from v.5392  
changed lines
  Added in v.5441

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9