| Implement VM function integration for native Rust APIs Add centralized VM registry system for integrating native Rust functions with the AutoLang interpreter, enabling standard library APIs backed by Rust implementations. Features: - VM registry with module-based organization (auto.io, etc.) - Use statement evaluation for importing VM modules - Function dispatch to Rust implementations - Method call support (file.close(), file.read_text()) - ValueRef resolution for method call dispatch - Type registration for VM types Changes: - Create vm.rs with VmRegistry, VmModule, and type definitions - Implement eval_use_auto() for loading VM modules - Add eval_vm_fn_call() for function dispatch - Add method call detection in eval_call() using Expr::Bina + Op::Dot - Register IO module (open, File type with close/read_text methods) - Add VM function integration tests (4 tests, all passing) - Update hello.at to use new VM function API This enables hello.at to successfully open and read table.at using VM-backed native Rust functions. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> | 9 个月前 |