How akene-uzezi/bwh works
BWH is a small Badwhipp language front end with an interactive token-printing REPL. A user enters a line; the executable starts the REPL, which creates a lexer and prints tokens until end of input. Separately, the parser consumes lexer tokens and builds the currently supported statement AST; expression parsing is incomplete, and the REPL does not invoke the parser or evaluate code. The graph reflects the sampled source and README; documented capabilities without a shown runtime connection are not linked.
Main entry points: repl.go Line REPL · token.go Token types · parser.go Parser · lexer.go Lexer
Components 7
Interactive shell
- Executable entry
main.go - Line REPL
repl/repl.go
Lexical analysis
- Lexer
lexer/lexer.go - Token types
token/token.go
Other components
- User
Connections 9
- User → Line REPL: enters lines
README.md - Executable entry → Line REPL: starts
main.go - Line REPL → Lexer: creates lexer
repl/repl.go - Line REPL → Token types: checks EOF
repl/repl.go - Lexer → Token types: emits tokens
lexer/lexer.go - Parser → Lexer: reads tokens
parser/parser.go - Parser → Token types: classifies tokens
parser/parser.go - Parser → AST nodes: builds nodes
parser/parser.go - AST nodes → Token types: stores token
ast/ast.go