From 9182a95022f4306bb6bf3b01f9c478283ed075e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Sterle?= Date: Tue, 28 Jul 2020 01:59:46 +0200 Subject: [PATCH] Add section on transpilers --- README.md | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e057b6c..4ded2b1 100644 --- a/README.md +++ b/README.md @@ -816,12 +816,21 @@ The [nvim-treesitter](https://github.com/nvim-treesitter/) organisation hosts va See also: - `:help lua-treesitter` - - - - - - - - - +### Transpilers + +One advantage of using Lua is that you don't actually have to write Lua code! There is a multitude of transpilers available for the language. + +- [Moonscript](https://moonscript.org/) + +Probably one of the most well-known transpilers for Lua. Adds a lots of convenient features like classes, list comprehensions or function literals. The [svermeulen/nvim-moonmaker](https://github.com/svermeulen/nvim-moonmaker) plugin allows you to write Neovim plugins and configuration directly in Moonscript. + +- [Fennel](https://fennel-lang.org/) + +A lisp that compiles to Lua. You can write configuration and plugins for Neovim in Fennel with the [Olical/aniseed](https://github.com/Olical/aniseed) plugin. Additionally, the [Olical/conjure](https://github.com/Olical/conjure) plugin provides an interactive development environment that supports Fennel (among other languages). + +Other interesting projects: +- [TypeScriptToLua/TypeScriptToLua](https://github.com/TypeScriptToLua/TypeScriptToLua) +- [teal-language/tl](https://github.com/teal-language/tl) +- [Haxe](https://haxe.org/) +- [SwadicalRag/wasm2lua](https://github.com/SwadicalRag/wasm2lua) +- [hengestone/lua-languages](https://github.com/hengestone/lua-languages)