/** * Test the run function directly */ import { run } from '../lang.js'; const scriptContent = ` /* Simple test script */ /* Get current state */ state : ..listen; /* Emit the state */ ..emit state; `; try { console.log('Testing run function...'); const result = run(scriptContent, {}, null); console.log('Result:', result); } catch (error) { console.error('Error:', error); console.error('Stack:', error.stack); }