[Parrot-users] PCT - how to specify a namespace when compiling?

Stephen Weeks tene at allalone.org
Tue Aug 17 19:55:56 UTC 2010

Not long ago, Will Coleda proclaimed...
> I'm trying to implement [namespace eval] for partcl-nqp. When I was
> compiling directly to PIR for partcl, I was able to just slip in a
> ".namespace" directive, but I see no way to specify this using
> PCT::HLLCompiler's  "compile" method.
> I don't see any mention of "namespace" in the squaak tutorial, or in
> compilers/PCT/HLLCompiler.pir.
> Any pointers?

You need to generate a PAST::Block with a :namespace attribute.  It's
just like the :hll attribute.  I hope that helps.

More information about the Parrot-users mailing list