From: Ken Bloom Date: 2006-09-27T23:25:08+09:00 Subject: Re: [QUIZ] Code to S-Exp (#95) On Sat, 23 Sep 2006 19:51:36 +0900, Sander Land wrote: > On 9/23/06, Robert Dober wrote: >> sxp{ a; b} => sxp{a} + sxp{b} which seems complicated for >> sxp{ 4; 2} ??? >> sxp{ obj.meth *args } => [ :meth, , *sxp{arg.first}, >> *sxp{arg.second} ...] ??? > > sxp {3.meth(*[1,2,3]) } => [:meth, 3, 1, 2, 3] for me, don't know > about the other ones. > > Here are the tests I'm using now: > http://pastie.caboo.se/14546 Here's a few important ones that I just thought of. This should make the problem much harder: sxp{ not :field } => [:not, :field] sxp{ :a != :b } => [:"!=", :a, :b] var=:field sxp{ :count(var) } => [:count, :field] -- Ken Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/ I've added a signing subkey to my GPG key. Please update your keyring.