The Samala Compiler compiles the Samawa programming language into Lua. Version 1.3.0 is the latest stable release. It transpiles Samawa code to Lua, enabling execution in Lua environments. Active development is uncertain due to limited community engagement and documentation. Key differentiators include targeting the niche Samawa language, which is designed for simplicity and embedding in Lua projects.
npm install samalang-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a simple Samawa print statement to Lua and logs the result.
Read file manually and pass contents to compile().
Ensure your Lua runtime supports Lua 5.3 features.
Always use double quotes for string literals.
Remove semicolons; they are optional and cause parse errors.
Use import { compile } from 'samalang-compiler'.No dependency data recorded yet.