On Tue, Jun 28, 2016 at 5:32 PM, Tom Browder <tom.brow...@gmail.com> wrote: > I am trying to debug a P6 pod problem, and the problem code seems to be in > file: > > rakudo/src/Perl6/Pod.nqp > > My question is how can I access code in that file? > > + Can I write an nqp script, use the Perl6::Pod module, and operate that way? > + How do I feed a chunk of pod to the routines? > > Any help would be appreciated. No one on #perl6 seems to know or be > interested in the problem (except Zoffix who zeroed in on the Pod.nqp > file, but he's lost his code). > > Best regards, > > -Tom
While that file is written in nqp, its part of rakudo - It may require other code in rakudo that isn't available in nqp. If you grep for Perl6::Pod in the source, you'll see that it's mentioned primarily in src/Perl6/Actions.nqp - that's the Actions file for the Perl6 grammar. So, this code is primarily exercised by writing actual POD6 in a perl file - use the syntax that calls the action that calls the sub you're interested in. Alternatively, if you're trying to test a particular set of inputs to these methods, you can construct a match object and pass that in (as these subs all seem to expect a match; they're designed to be used in conjunction with the grammar/action objects). -- Will "Coke" Coleda