lua-users home
lua-l archive

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


> > LuaSrcDiet is pure Lua. lstrip is in C.
> 
> If both of those were written by me, I know which one _I'd_ use :-)

One advantage of lstrip is that it uses the lexer from the Lua core and
so is consistent with what Lua sees. On the other hand, lstrip is too
clever (or lazy) for its own good: it redefines luaY_parser and so can
only be used as a standalone program, not as a library.