lua-users home
lua-l archive

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


Hi,

I am happy to announce LuaSyntaxer 1.2, including the following changes:
- Lua version upgraded to 5.2.2
- Added a specific syntax notification for VARARG (dots) expressions

Lua Syntaxer adds syntax analyzing capabilities to Lua 5.2 at the C API level. 

The internal parser is closely based on Lua's own syntax parser `lparser.c`. This provides a good level of confidence that the Lua syntax structure reported by LuaSyntaxer  will be identical to the interpretation of this program by Lua byte code compiler.

Lua Syntaxer does not build the AST of the analyzed code chunk. It is intended to be a low-level utility on top of which programmers can build an AST with the appropriate structure matching their own needs. As such, Lua Syntaxer can be used for implementing a Lua syntax-aware text editor, a code static analysis tool ...

The source code and documentation can be found here: https://bitbucket.org/jean_luc/luasyntaxer

Enjoy !

Jean-Luc