1 ####################################################################
3 # This file was generated using Parse::Yapp version 1.05.
5 # Don't edit this file, use source file instead.
7 # ANY CHANGE MADE HERE WILL BE LOST !
9 ####################################################################
10 package Parse
::Pidl
::Expr
;
14 @ISA= qw
( Parse
::Yapp
::Driver
);
15 use Parse
::Yapp
::Driver
;
22 and $class=ref($class);
24 my($self)=$class->SUPER::new
( yyversion
=> '1.05',
43 'possible_pointer' => 13
62 'possible_pointer' => 13
105 'possible_pointer' => 13
124 'possible_pointer' => 13
149 'possible_pointer' => 13
168 'possible_pointer' => 13
177 'possible_pointer' => 40
223 'possible_pointer' => 13
245 'possible_pointer' => 13
264 'possible_pointer' => 13
283 'possible_pointer' => 13
302 'possible_pointer' => 13
321 'possible_pointer' => 13
340 'possible_pointer' => 13
359 'possible_pointer' => 13
378 'possible_pointer' => 13
397 'possible_pointer' => 13
416 'possible_pointer' => 13
435 'possible_pointer' => 13
454 'possible_pointer' => 13
473 'possible_pointer' => 13
492 'possible_pointer' => 13
511 'possible_pointer' => 13
530 'possible_pointer' => 13
549 'possible_pointer' => 13
568 'possible_pointer' => 13
668 'exp_or_possible_pointer' => 67,
669 'possible_pointer' => 68
1080 'possible_pointer' => 13
1100 'exp_or_possible_pointer' => 67,
1101 'possible_pointer' => 68
1191 { "$_[1] == $_[3]" }
1197 { "$_[1] <= $_[3]" }
1203 { "$_[1] => $_[3]" }
1209 { "$_[1] << $_[3]" }
1215 { "$_[1] >> $_[3]" }
1221 { "$_[1] != $_[3]" }
1227 { "$_[1] || $_[3]" }
1233 { "$_[1] && $_[3]" }
1245 { "$_[1]?$_[3]:$_[5]" }
1290 'possible_pointer', 1,
1293 { $_[0]->_Lookup($_[1]) }
1296 'possible_pointer', 2,
1299 { $_[0]->_Dereference($_[2]); "*$_[2]" }
1305 { $_[0]->_Use($_[1]) }
1311 { $_[0]->_Use("$_[1].$_[3]") }
1323 { $_[0]->_Use("*$_[1]"); $_[1]."->".$_[3] }
1338 'opt_args', 1, undef
1341 'exp_or_possible_pointer', 1, undef
1344 'exp_or_possible_pointer', 1, undef
1357 bless($self,$class);
1363 package Parse
::Pidl
::Expr
;
1368 $parser->YYData->{INPUT
}=~s/^[ \t]//;
1370 for ($parser->YYData->{INPUT
}) {
1371 if (s/^(0x[0-9A-Fa-f]+)//) {
1372 $parser->YYData->{LAST_TOKEN
} = $1;
1375 if (s/^([0-9]+(?:\.[0-9]+)?)//) {
1376 $parser->YYData->{LAST_TOKEN
} = $1;
1379 if (s/^([A-Za-z_][A-Za-z0-9_]*)//) {
1380 $parser->YYData->{LAST_TOKEN
} = $1;
1383 if (s/^\"(.*?)\"//) {
1384 $parser->YYData->{LAST_TOKEN
} = $1;
1387 if (s/^(==|!=|<=|>=|->|\|\||<<|>>|&&)//s) {
1388 $parser->YYData->{LAST_TOKEN
} = $1;
1392 $parser->YYData->{LAST_TOKEN
} = $1;
1400 my ($self, $x) = @_;
1401 if (defined($self->YYData->{USE
})) {
1402 return $self->YYData->{USE
}->($x);
1409 my ($self, $x) = @_;
1410 return $self->YYData->{LOOKUP
}->($x);
1413 sub _Dereference
($$)
1415 my ($self, $x) = @_;
1416 if (defined($self->YYData->{DEREFERENCE
})) {
1417 $self->YYData->{DEREFERENCE
}->($x);
1424 if (defined($self->YYData->{LAST_TOKEN
})) {
1425 $self->YYData->{ERROR
}->("Parse error in `".$self->YYData->{FULL_INPUT
}."' near `". $self->YYData->{LAST_TOKEN
} . "'");
1427 $self->YYData->{ERROR
}->("Parse error in `".$self->YYData->{FULL_INPUT
}."'");
1432 my($self, $data, $error, $lookup, $deref, $use) = @_;
1434 $self->YYData->{FULL_INPUT
} = $data;
1435 $self->YYData->{INPUT
} = $data;
1436 $self->YYData->{LOOKUP
} = $lookup;
1437 $self->YYData->{DEREFERENCE
} = $deref;
1438 $self->YYData->{ERROR
} = $error;
1439 $self->YYData->{USE
} = $use;
1441 return $self->YYParse( yylex
=> \
&_Lexer
, yyerror
=> \
&_Error
);