ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/Runtime.pm
(Generate patch)

Comparing COMP/SCRAM/src/Runtime.pm (file contents):
Revision 1.1.2.4 by williamc, Fri Apr 7 08:14:39 2000 UTC vs.
Revision 1.1.2.5 by williamc, Fri Apr 7 13:34:52 2000 UTC

# Line 126 | Line 126 | sub Runtime_start {
126          $self->{switch}->checktag($name,$hashref,'value');
127          if ( $self->{Arch} ) {
128            if ( $self->{Runtimecontext} == 1 ) {
129 <           print "No </$name> before new tag at line ".
130 <                                $self->{switch}->line()."\n";
131 <           exit 1;
129 >           $self->{switch}->parseerror("No </$name> before new tag");
130            }
131            $self->{Runtimecontext}=1;
132  
# Line 137 | Line 135 | sub Runtime_start {
135            if ( defined $$hashref{'type'} ) {
136               if ( ( exists $self->{'vartype'}{$$hashref{'name'}} ) &&
137                  ( $self->{'vartype'}{$$hashref{'name'}} ne $$hashref{'type'}) ){
138 <                   print "Redefinition of Variable type for ".$$hashref{'name'}
139 <                        ." on line ".$self->{switch}->line();
138 >                   $self->{switch}->parseerror("Redefinition of Variable".
139 >                        " type for ".$$hashref{'name'});
140               }
141               $self->{'vartype'}{$$hashref{'name'}}=$$hashref{'type'};
142               if ( defined $self->{validtypes}{$$hashref{'type'}} ) {
143 <                print "Unknown type ".$$hashref{'type'}." on line ".
144 <                        $self->{switch}->line()."\n";
147 <                exit 1;
143 >                $self->{switch}->parseerror(
144 >                     "Unknown type ".$$hashref{'type'});
145               }
146            }
147            else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines