| 1 | 1 | ▶ | use Parse::Yapp; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 2 | |||||||||||||
| 3 | 1 | my $path = 'blib/lib/Parse/Yapp/KeyValue'; | |||||||||||
| 4 | 1 | my $file = "$path/Parser.pm"; | |||||||||||
| 5 | 1 | my $parser = new Parse::Yapp(inputfile => 'grammar.yp'); | |||||||||||
| 6 | |||||||||||||
| 7 | 1 | ▶ | mkdir $path || die "could not create directory $path: $!"; | ||||||||||
|
Condition50%1/2
$path || die("could not create directory ${path}: $!")
MC/DC0%0/1
$path || die("could not create directory ${path}: $!")
$path
Truth table50%1/2
A
A= $path
| |||||||||||||
| 8 | 1 | ▶ | die "unable to create Yapp parser for grammar.yp: $!" if not defined $parser; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 9 | |||||||||||||
| 10 | 1 | ▶ | open(FILE, ">$file") || die "unable to open $file: $!"; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 11 | 1 | print FILE $parser->Output(classname => 'Parse::Yapp::KeyValue::Parser'); | |||||||||||
| 12 | 1 | close FILE; | |||||||||||
| 13 | |||||||||||||