How zer0-official/simpl-py works
Simpl-Py is a Python-like recreational language implemented primarily in one script. A user enters commands into its interactive loop; the interpreter dispatches tokens to command handlers, which implement printing and math, variables, text-file operations, modules, and other commands. The README also describes module imports and coded errors, while the excerpts show module loading and error handling. Most runtime responsibilities share Simpl.py; omitted source prevents tracing every handler and dispatch in detail.
Main entry points: Simpl.py Token dispatcher · MyDocuments User documents · SPY_module.py Example module
Components 14
Interpreter runtime
- Interactive loop
Simpl.py - Token dispatcher
Simpl.py - System information
Simpl.py
Language commands
- Print commands
Simpl.py - Print math
Simpl.py - Slash commands
Simpl.py - Call commands
Simpl.py
Variables and files
- Variable commands
Simpl.py - Text-file commands
Simpl.py - User documents
src/MyDocuments
Modules and errors
- Module handler
Simpl.py - Example module
src/mod/SPY_module.py - Error reporting
Simpl.py
Other components
- Language user
Connections 14
- Language user → Interactive loop: enters commands
README.md - Interactive loop → Token dispatcher: dispatches tokens
Simpl.py - Token dispatcher → Print commands: dispatches
Simpl.py - Token dispatcher → Variable commands: dispatches
Simpl.py - Token dispatcher → Text-file commands: dispatches
Simpl.py - Token dispatcher → Module handler: dispatches
Simpl.py - Token dispatcher → Slash commands: dispatches
Simpl.py - Token dispatcher → Call commands: dispatches
Simpl.py - Print commands → Print math: handles math
README.md - Text-file commands → User documents: reads and writes
Simpl.py - Module handler → Example module: imports and invokes
Simpl.py - Module handler → Error reporting: reports failures
Simpl.py - Token dispatcher → Error reporting: reports invalid tokens
Simpl.py - Interactive loop → System information: displays information
Simpl.py