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.

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.

-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{}'

Reply via email to