How kornelszyszka/fungo-programming-language works
FunGo is a small language front end with a command-line token-inspection loop, a lexer, and a parser that builds an AST. The visible user workflow reads lines from standard input and prints their tokens; the parser and AST are separate language-processing capabilities, not shown wired into that command. No evaluator or execution stage is evidenced. The parser excerpt is partial, so the graph captures only its demonstrated lexer and AST relationships.
Main entry points: parser.go Parser · lexer.go Lexer · main.go Command entry · debugger.go Token loop
Components 7
Interactive CLI
- Command entry
cmd/main.go - Token loop
debug/debugger.go
Language Front End
- Lexer
internal/lexer/lexer.go - Token types
internal/lexer/token/token.go - Parser
internal/parser/parser.go - AST nodes
internal/parser/ast/ast.go
Other components
- CLI user
Connections 7
- CLI user → Command entry: runs
cmd/main.go - Command entry → Token loop: starts
cmd/main.go - Token loop → Lexer: tokenizes lines
debug/debugger.go - Lexer → Token types: emits tokens
internal/lexer/lexer.go - Parser → Lexer: reads tokens
internal/parser/parser.go - Parser → Token types: dispatches by type
internal/parser/parser.go - Parser → AST nodes: builds nodes
internal/parser/parser.go