Roie,
On Apr 11, 2005, at 2:17 PM, Roie Marianer wrote:
Hi all.
I'm new here, just downloaded pugs the other day. I noticed only q//, qq// and
qw// were implemented of the quoting constructs, so I tried my hand at
implementing most of the quoting constructs as specified in S6.
Excellent.
It's not the best code in the world (and I think I broke qw// on the way), but
if anyone wants the patch (5k in 125 lines) I'd be more than happy to share.
I would rather give you commit rights (we give them out quite liberally) and you could apply it yourself actually. But you should first test your patch against the latest SVN revision since many many many things have changed the past few days.
- Stevan
-Roie
pugs> $a 1 pugs> @a (1, 2) pugs> %a {'1' => 'one', '2' => 'two'} pugs> "$a; @a[]\n %a{}" '1; 1 2 1 one 2 two ' pugs> qa"$a; @a[]\n %a{}" '$a; 1 2\\n %a{}' pugs> qa:b"$a; @a[]\n %a{}" '$a; 1 2 %a{}' pugs> qa:b "$a; @a[]\n %a{}" '$a; 1 2 %a{}' pugs> qa:b 7$a; @a[]\n %a{}7 '$a; 1 2 %a{}' pugs> qa:s ($a; @a[]\n %a{}) '1; 1 2\\n %a{}'