Haxe externs(bindings) for Reaper's Lua ReaScript variant, write your Reaper plugins in Haxe and compile to Lua for ReaScript.
Currently in Alpha, major changes may be made in the future
The Haxe externs are generated via the reascript2hx parser for lua documentation files provided by vscode-reascript-extension.
- Install Haxe
- Add HxReaScript to haxelib
haxelib git hxReaScript https://github.com/inc0der/HxReaScript - Create your
.hxmlfile addhxReaScriptas a library and target Lua.
# Main plugin class
-main Main
# Add hxReaScript as library
-lib hxReaScript
# Use vanilla lua to avoid pulling in other dependencies (unless you need them)
-D lua-vanilla
--lua bin/lua/main.luaSince it appears many of the C++ and Lua method names are similar this may be a good base to compile to the C++ ReaScript variant in future revisions.