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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2558 - (download) (as text) (annotate)
Wed Jul 28 20:32:33 2004 UTC (8 years, 10 months ago) by sh002i
File size: 579 byte(s)
merged changes from rel-2-1-a1 -- stop using that branch.

    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::UOP::undefined;
   10 use strict; use vars qw(@ISA);
   11 @ISA = qw(Parser::UOP);
   12 
   13 sub _check {
   14   my $self = shift;
   15   $self->Error("Can't use '$self->{op}' in this context");
   16 }
   17 
   18 #########################################################################
   19 
   20 1;
   21 

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9