How adhi7dawg/ngapak works
Ngapak is a small Python-based language translator and command-line runner for .ngpk programs. Its main workflow accepts a source file, translates Ngapak keywords into Python, then either writes the translation or executes it. The README also documents configuration and keyword management, optional standard-library keywords, and imports of other .ngpk modules. The source excerpt shows token translation and module loading, but omits much of CLI dispatch and execution; edges for documented workflows therefore cite the README, and unsampled internals are not inferred.
Main entry points: ngapak.py CLI commands
Components 11
Command line
- CLI commands
ngapak.py - Configuration
ngapak.py - Config and keywords
ngapak.py
Language processing
- Keyword mapping
ngapak.py - Token translator
ngapak.py - File translation
ngapak.py - Module imports
ngapak.py
Execution and support
- Error reporting
ngapak.py
Other components
- Program author
- Ngapak program
- Python runtime
Connections 14
- Program author → CLI commands: runs command
README.md - CLI commands → Ngapak program: accepts file
README.md - CLI commands → Configuration: loads options
README.md - Configuration → Keyword mapping: configures
ngapak.py - Keyword mapping → Token translator: supplies mappings
ngapak.py - CLI commands → File translation: translates file
README.md - File translation → Token translator: translates tokens
ngapak.py - File translation → Python runtime: writes Python
README.md - CLI commands → Python runtime: runs program
README.md - Module imports → Token translator: translates imports
ngapak.py - Ngapak program → Module imports: imports modules
README.md - CLI commands → Error reporting: reports failures
ngapak.py - Program author → Config and keywords: requests settings
README.md - Config and keywords → Configuration: reads configuration
ngapak.py