[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Parser
- From: Igor Medeiros <igorosbergster@...>
- Date: Tue, 17 Jul 2012 22:40:38 -0300
i am sorry for ask something like this, but i did not understand which function of lpeg i should use to parser a string which contains a lua code sample
local code = [[
--some lua code here
i tried print(lpeg.match(lpeg.P(lua), code)) but it prints just the index of first character after the match or nil if the match does not occur
I need a error message like those showed by lua interpreter when it find a syntactic error, instead the nil value printed .
returns the index in the subject of the first character after the match, or the ca
2012/7/17 Igor Medeiros <email@example.com>
Thanks by replies.
2012/7/17 Robert G. Jakabosky <firstname.lastname@example.org>
On Tuesday 17, Igor Medeiros wrote:This page has a Lua Lexer & Lua Parser written in Lua that uses LPeg:
> Are there some lua parser done in lua or C available for download? If there
> exists, could someone tell me where find it?
Robert G. Jakabosky