CLI and Execution Model
Overview
Echo source files are tokenized, parsed, and interpreted at runtime.
Syntax
bash
python src/main.py file.echo
python src/main.py file.echo --plainHow Echo Runs
- Lexer reads the source file and produces tokens
- Parser turns tokens into an AST
- Interpreter executes the AST directly
CLI
Run a file
bash
python src/main.py program.echoPlain output mode
bash
python src/main.py program.echo --plainUse plain mode when you want simple text output without Rich panels.
Notes
- Echo currently runs one source file at a time.
- There is no Echo module/import system yet.
- Errors are reported by category: syntax, name, type, or execution.
