// Debug string literals with actual command format const ForthInterpreter = require('./forth.js'); console.log('🔍 Debugging String Literals - Command Format\n'); let state = ForthInterpreter.createInitialState(); console.log('Testing: ." Hello World"'); state = ForthInterpreter.parseAndExecute(state, '." Hello World"'); console.log('Result:', { stringMode: state.stringMode, currentString: state.currentString, stacks: state.stacks[0] }); console.log('\nTesting: ." Hello"'); state = ForthInterpreter.createInitialState(); state = ForthInterpreter.parseAndExecute(state, '." Hello"'); console.log('Result:', { stringMode: state.stringMode, currentString: state.currentString, stacks: state.stacks[0] }); console.log('\nTesting: ." Test"'); state = ForthInterpreter.createInitialState(); state = ForthInterpreter.parseAndExecute(state, '." Test"'); console.log('Result:', { stringMode: state.stringMode, currentString: state.currentString, stacks: state.stacks[0] });