lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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

"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
> >a customizable or plugable code preprocessor in lua, so that the users
> >customize their sintax. What do you think about that?
> See etc/pp.lua in the distribution. It contains a redefinition of dofile
> uses an implementation of the 3.x preprocessor. The same kind of
> can be used to pass a file through a trivial gsub that changes "method ()"
> "function (self)" and "method (" to "function (self, " (in this order).
> --lhf

Do You Yahoo!?
Get your free address at