[prev in list] [next in list] [prev in thread] [next in thread]
List: lua-l
Subject: Re: method keyword / preprocessor
From: Ignacio_Castaņo <castanyo () yahoo ! es>
Date: 2001-10-22 18:26:27
Message-ID: 000801c15b27$115a0950$994d533e () atomchild
[Download RAW message or body]
hey, thanks for the fast answer!
That was just what I had in mind, I just wanted to know if somebody had any
other idea ;-)
Ignacio Castaņo
castano@asidesoft.com
"Luiz Henrique de Figueiredo" wrote:
> >I think that probably the easiest way to do that would be adding a code
> >preprocesor. With this idea in mind I thought that it would be cool to
have
> >a customizable or plugable code preprocessor in lua, so that the users
could
> >customize their sintax. What do you think about that?
>
> See etc/pp.lua in the distribution. It contains a redefinition of dofile
that
> uses an implementation of the 3.x preprocessor. The same kind of
redefinition
> can be used to pass a file through a trivial gsub that changes "method ()"
to
> "function (self)" and "method (" to "function (self, " (in this order).
> --lhf
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic