When I was compiling the rules, they weren't going where I thought they were going. This was because I stole code from compilers/pge/ demo.pir improperly; there is a gname variable in there that's a PMC. If you change it to a string instead, it seems to work fine. Apparently as a PMC it was installing my rules in the wrong location. (My clue was your sample, which was calling the p6rule_compile with a literal string to describe the parent grammar, not a PMC as in demo.pir).

Of course, now I don't know why demo.pir works, but it does. =-)

Regards.

On Jul 3, 2005, at 9:11 AM, Will Coleda wrote:

I'm having a similar problem trying to integrate this in partcl

Haven't been able to come up with a short test case yet, but i suspect that it has something to do with different namespaces in the original compile vs. when it's invoked.

I'll try to come up with a test case that doesn't involve all of partcl.

As a side note, it'd be nice if the code that demo.pir uses to read in a perl6 rules file was part of PGE's interface.

Reply via email to