From: Andreas Hinze
Subject: Re: Two questions together
Date: 
Message-ID: <3rmpn8FkbniiU2@uni-berlin.de>
Hi,

Kubilay wrote:
> Question 1: How powerful are the macros? Lisp is supposed to be a
> "programmable language" and as far as I know this feature is provided
> by macros, right? It is also said that one can hammer the Lisp so that
> he can reach a "new" language which is tailored to his needs by using
> macros. So, how far can we extend? Should this language's syntax be
> same of Lisp's? Oh no, I really love Lisp's syntax :) But I just want
> to learn. For example, by using macros, can I develop a "new" language
> called "Lisp++" based upon Lisp but also seems like just as C or Ruby?
> 
> I mean something like this:
> 
> In Lisp:   (setf x (+ 4 5))
> 
> In Lisp++:  x = 4 + 5 ;
> 

See
http://www-cgi.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/code/syntax/infix/old/infix.cl

for a reader macro that provides infix math for CL. To get rid of the
parenthesises you might tweak the Lisp reader (if you see any
advantages in doing so ^^).

Regards
AHz