[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A library to build Lua AST
- From: Paul K <paulclinger@...>
- Date: Fri, 6 Sep 2013 15:14:13 -0700
> Anything else out there?
I've used David Manura's loose parser:
https://github.com/davidm/lua-parser-loose. It doesn't generate AST,
but it generates events with all the information you need to build an
AST (similar to SAX in some ways). The disadvantage is that you need
to do AST generation yourself; the advantage is that you get to pick
the format and the elements you care about. I've been using it in ZBS
without issues, although I extended it in several ways to allow
parsing of incomplete fragments.