Project record1 mention
Originally shared on Hacker News
Lua-to-JS transpiler
This transpiler converts Lua code to JavaScript by parsing with tree-sitter and traversing the syntax trees. It is planned to be used later in a static site generator that employs a Lua DSL.
01 / Source history
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Lua-to-JS transpiler
This transpiler converts Lua code to JavaScript by parsing with tree-sitter and traversing the syntax trees. It is planned to be used later in a static site generator that employs a Lua DSL.
Posted by @nvlled · Original source ↗
Source text · @nvlled · · Source ↗
I'm currently trying to create a lua-to-js transpiler using treesitter. Not sure how hard this is, but I suppose it's just a matter of traversing trees.