block-engine-runner
v2.2.2
Published
Zero-dependency polyglot execution engine for Python, Node.js, Lua & PHP
Maintainers
Readme
🔲 Block Engine CLI (block-engine-cli)
Zero-dependency polyglot execution engine for running Python, Node.js, Lua & PHP in a single document.
⚡ Quick Install
npm install -g block-engine-cli🚀 Usage
1. Run a .blkp polyglot script
block my_script.blkp2. Start HTTP REST API Gateway
block-plus --server 8080 my_script.blkp3. Check Version
block --version📜 Polyglot Document Example (my_script.blkp)
<py>
# Python Stage
user_name = "Gemini Master"
score = 98.5
</py>
<js>
// Node.js Stage: Automatically receives Python variables
console.log(`[JS] User: ${user_name}, Score: ${score}`);
var final_score = Math.round(score + 1.5);
</js>
<lua>
-- Lua 5.4 Stage
lua_status = "PASSED"
</lua>
<php>
// PHP 8 Stage
$hash = hash('sha256', $user_name . '|' . $final_score);
echo "[PHP] SHA-256 Audit: " . $hash . "\n";
</php>📄 License
MIT Open Source License. Created by O-O1112 & Block Engine Team.
