Newsgroups: perl.perl6.internals
From: pmich...@pobox.com (Patrick R. Michaud)
Date: Wed, 13 Dec 2006 15:52:48 -0600
Local: Wed, Dec 13 2006 4:52 pm
Subject: Re: Past-pm basic string types
On Tue, Dec 12, 2006 at 01:57:20PM -0800, Allison Randal wrote: After sleeping on it overnight, I realized that PAST-pm already > Patrick R. Michaud wrote: > >I can modify PAST-pm to provide a "send exactly this string to PIR" > >option for PAST::Val. > Yes, good idea for the simple case. has this feature. Currently PAST-pm checks the PAST::Val node's "ctype" So, just don't set "ctype", and whatever the node has as Here's an example: $ cat x.pir ## $S0 is the string we want to appear in the output ## compile the tree to PIR and print the result $ ./parrot x.pir .sub "anon" Eventually the handling of "ctype" is going to change -- first, There is a good chance that PAST-pm will treat PAST::Val nodes $S0 = '"\n"' Since the node isn't a string type, PAST-pm will use the "name" new $P10, .Undef And this does exactly what you want. :-) Pm You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||