[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Using function 'tokens' with strings
- From: Jose Marin <jose_marin2@...>
- Date: Wed, 21 Jan 2004 14:11:11 -0300 (ART)
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/