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

View of /trunk/pg/lib/Parser/BOP/undefined.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4994 - (download) (as text) (annotate)
Sun Jun 10 01:17:29 2007 UTC (12 years, 8 months ago) by dpvc
File size: 609 byte(s)
Update to handle the fact that the Value package now includes the
context with all MathObjects.  (This may still need some work.)

    1 #########################################################################
    2 #
    3 #  Use this for undefined operators in the Context operator list.
    4 #  They will still be recognized by the parser (so you don't get
    5 #  'unexpected character' errors), but get a message that the operation
    6 #  is not defined in this context.
    7 #
    8 
    9 package Parser::BOP::undefined;
   10 use strict;
   11 our @ISA = qw(Parser::BOP);
   12 
   13 sub _check {
   14   my $self = shift;
   15   my $bop = $self->{def}{string} || $self->{bop};
   16   $self->Error("Can't use '%s' in this context",$bop);
   17 }
   18 
   19 #########################################################################
   20 
   21 1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9