How neoomir/neomir works
NeoMir is a desktop robot-programming environment: users edit a program, run or step it, and observe the robot or turtle in an editable field, with output in the console. The language pipeline tokenizes and parses source into an AST, then compiles it to a virtual machine that operates on the field. The application also provides editor preferences and plugin management, including a Unix-socket IPC server. The README is empty; relationships below rely on shown excerpts and SOURCE INDEX references, so unsampled integrations are not inferred.
Main entry points: app_window.rs Main window · ipc.rs IPC server · settings_dialog.rs Settings dialog · mod.rs Language compiler
Components 19
Desktop interface
- Application startup
src/main.rs - Main window
src/ui/app_window.rs - Code editor
src/ui/editor_view.rs - Console
src/ui/console_view.rs - Settings dialog
src/ui/settings_dialog.rs - Keybindings
src/ui/keybindings.rs - Editor themes
src/ui/theme.rs - Vim controls
src/ui/vim_mode.rs
Language runtime
- Language compiler
src/lang/mod.rs - Lexer
src/lang/token.rs - Parser
src/lang/parser.rs - Syntax tree
src/lang/ast.rs - Virtual machine
src/lang/vm.rs
Robot simulation
- Robot field state
src/robot.rs - Field view
src/ui/field_view.rs
Extensions and IPC
- Plugin management
src/plugins/mod.rs - Plugin engine
src/plugins/engine.rs - IPC server
src/plugins/ipc.rs
Other components
- User
Connections 28
- User → Application startup: launches
- Application startup → Main window: opens
src/main.rs - Main window → Code editor: hosts
src/ui/app_window.rs - Main window → Console: hosts
src/ui/app_window.rs - Main window → Field view: hosts
src/ui/app_window.rs - Main window → Language compiler: compiles source
src/ui/app_window.rs - Language compiler → Lexer: tokenizes with
src/lang/mod.rs - Language compiler → Parser: parses with
src/lang/mod.rs - Language compiler → Virtual machine: compiles AST
src/lang/mod.rs - Parser → Lexer: consumes tokens
src/lang/parser.rs - Parser → Syntax tree: builds
src/lang/parser.rs - Virtual machine → Syntax tree: compiles
src/lang/vm.rs - Virtual machine → Robot field state: executes commands
src/lang/vm.rs - Main window → Virtual machine: steps execution
src/ui/app_window.rs - Field view → Robot field state: renders and edits
src/ui/field_view.rs - Main window → Robot field state: controls field
src/ui/app_window.rs - Main window → Settings dialog: opens
src/ui/app_window.rs - Settings dialog → Keybindings: configures
src/ui/settings_dialog.rs - Settings dialog → Code editor: configures
src/ui/settings_dialog.rs - Code editor → Editor themes: applies
src/ui/editor_view.rs - Code editor → Vim controls: delegates key input
src/ui/editor_view.rs - Main window → IPC server: starts server
src/ui/app_window.rs - IPC server → Robot field state: dispatches robot actions
src/plugins/ipc.rs - IPC server → Field view: requests redraw
src/plugins/ipc.rs - IPC server → Console: interacts with
src/plugins/ipc.rs - Settings dialog → Plugin management: manages plugins
src/ui/settings_dialog.rs - Plugin management → Plugin engine: delegates management
src/plugins/mod.rs - Plugin engine → IPC server: uses IPC
src/plugins/engine.rs