Skip to content

Commit

Permalink
Add an utility
Browse files Browse the repository at this point in the history
  • Loading branch information
gfx committed Nov 18, 2009
1 parent 5d60a4c commit 2e051c3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions author/ppcode.pl
@@ -0,0 +1,15 @@
#!perl -w

use strict;
use Acme::Perl::VM qw(@PL_ppaddr);

my $implemented = 0;
for(my $i = 0; $i < @PL_ppaddr; $i++){
my $ok = B::svref_2object($PL_ppaddr[$i])->GV->NAME ne '__ANON__';
print $ok ? '* ' : ' ', B::ppname($i), "\n";
$implemented++ if $ok;
}

printf "PPCODE %d/%d (%d%%)\n",
$implemented, scalar @PL_ppaddr,
($implemented / scalar @PL_ppaddr)*100;

0 comments on commit 2e051c3

Please sign in to comment.