From: Ben Date: 2005-09-27T22:00:35+09:00 Subject: Re: Fwd: Lisp macros On 9/27/05, Ben wrote: > (much rambling snipped) Alright, now I am intrigued. How much work would it be to create a Ruby Lisp-like parser? class Risp def Risp.eval(code) # code should be an array! # What happens here? We need to create a string to be eval'ed. As # the string is created, if we find an array jump in to eval that first. # -- We need a macro type that would change the format of what is being # parsed. # -- We'd need to decide how to handle objects since methods are not # members in Lisp. Maybe make the first parameter always be the self so # [x, y, z] becomes y.x(z) # # What a totally pointless, but entertaining exercise. :) # I don't think it could go anywhere. :( end end