lua-parser
1.0.3indexedLua 5.3 lexer and parser for transforming source code to AST and vice versa. Includes ongoing semantic analysis for type information.
25
Stars
—
Used by
dependents
—
Health
/ 100
Lua 5.3 lexer and parser for transforming source code to AST and vice versa. Includes ongoing semantic analysis for type information.
A Lua 5.3 Lexer & Parser written in pure Kotlin.
implementation("io.github.dingyi222666:luaparser:1.0.3")
Ok. Use it like this:
val lexer = LuaLexer("print('hello world')")
val parser = LuaParser()
val root = parser.parse(lexer)
println(AST2Lua().asCode(root))
More usage coming soon.
Surfaced from shared tags and platforms — no rankings paid for.