gen-tracer-view.pl - Generate the HTML view for the PCR tracer
$ perl util/compile_p6grammar.pl -D examples/digits.grammar > Digits.pm $ echo '7c3d54' > digits.input $ perl -Ilib -MDigits -e 'print Digits->count(<>)->(), "\n"' digits.input > trace.out $ perl util/gen-tracer-view.pl --outdir tmp/digits examples/digits.grammar digits.input < trace.out $ firefox tmp/digits/index.html
compile_p6grammar.pl
"A graphical tracer for Perl 6 regexes based on PCR"
http://pugs.blogs.com/pugs/2007/10/a-graphical-tra.html.
Agent Zhang <agentzh@yahoo.cn>.
Copyright (c) 2007 by Yahoo! China Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Pugs::Compiler::Rule, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pugs::Compiler::Rule
CPAN shell
perl -MCPAN -e shell install Pugs::Compiler::Rule
For more information on module installation, please visit the detailed CPAN module installation guide.