lua-users home
lua-l archive

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


Hello.

It's possible to change the function 'tokens'
(ltokens.c) to accept strings?

Like this 

a = tokens("a = 123")

will parse the string in "a", "=" and "123".

How to do this in Lua, and in a C++ program?

Another aproaching is to use the functions in llex.c,
but I'm not sure how to use them with strings...


______________________________________________________________________

Yahoo! GeoCities: a maneira mais fácil de criar seu web site grátis!
http://br.geocities.yahoo.com/