Io-to-JavaScript source-to-source compiler, version 0.2.3. Originally written for CodeCombat's parser challenge, now used in CodeCombat via Aether. Compiles a minimal subset of Io (messages, objects, methods, prototype chain, infix operators) into JavaScript. Dependencies include Escodegen for code generation and Jison for parsing. The project is in early development; many core constructs and standard library features are missing. Differentiators: direct JavaScript interop, AST conforms to Mozilla Parser API, CLI and library usage.
npm install iota-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of iota eval and compile with Io code to compute a greeting.
Check the 'Still to come' list in README; avoid using unsupported features.
Always include `var _io = iota.lib;` before calling `eval(iota.compile(code))`.
Set `wrapWithFunction: true` to run within a function context, preventing global leaks.
Add `const _io = require('iota-compiler').lib;` before `eval(iota.compile(code))`.Use default import: `import iota from 'iota-compiler'` or `const iota = require('iota-compiler')`.Review supported features; avoid using 'self' or unsupported operators.