How dot-underscore1703/dustbunny works
Dustbunny is a hobby Unix shell. Its demonstrated workflow accepts interactive or -c input, tokenizes it, and can print the tokens with -t; the sampled entry point does not parse or execute commands. The repository also contains builtin-command implementations and token-preprocessing and syntax-tree support, but their runtime wiring is not shown. The graph links only relationships supported by the excerpts or SOURCE INDEX; those unsupported components are shown without guessed call paths.
Main entry points: main.c Input and Token Display · debug.c Debug Output · lexer.c Input Lexer · tokens.c Token Management
Components 9
Shell Entry
- Input and Token Display
src/main.c
Tokenization
- Input Lexer
src/lexer.c - Token Management
src/tokens.c - Token Preprocessing
src/preproc.c - Syntax Tree Nodes
src/nodes.c
Shell Support
- Builtin Commands
src/builtins.c - Debug Output
src/debug.c
Other components
- User
- Terminal Output
Connections 8
- User → Input and Token Display: provides input
src/main.c - Input and Token Display → Input Lexer: tokenizes input
src/main.c - Input Lexer → Token Management: creates tokens
src/lexer.c - Input and Token Display → Terminal Output: prints tokens
src/main.c - Input and Token Display → Debug Output: logs input
src/main.c - Input Lexer → Debug Output: logs lexing
src/lexer.c - Token Management → Debug Output: logs token operations
src/tokens.c - Syntax Tree Nodes → Debug Output: logs node operations
src/nodes.c