How blazkull/compilator_coste-ol works
Costeñol is an educational language with a Tkinter IDE, compiler front end, interpreter, and .pqek project files. Users edit programs, analyze them through tokenization and parsing with semantic checks, or execute the resulting AST; execution reports output and requests input through the IDE terminal. The README also documents syntax highlighting and package management. The GUI, parser, and interpreter excerpts support the main calls; some GUI wiring is omitted, so the graph avoids inferring unshown details.
Main entry points: app.py IDE and editor · interpreter.py AST interpreter · parser.py Parser and AST · scanner.py Tokenizer
Components 10
IDE
- IDE and editor
src/gui/app.py - Interactive terminal
src/gui/app.py - Package browser
src/gui/app.py
Compilation
- Tokenizer
src/lexer/scanner.py - Token definitions
src/lexer/tokens.py - Parser and AST
src/parser/parser.py - Symbol table
src/semantic/symbol_table.py
Execution
- AST interpreter
src/interpreter/interpreter.py
Project Files
- .pqek files
packages
Other components
- User
Connections 13
- User → IDE and editor: edits code
README.md - IDE and editor → Tokenizer: tokenizes code
src/gui/app.py - Tokenizer → Token definitions: uses patterns
src/lexer/scanner.py - IDE and editor → Parser and AST: parses tokens
src/gui/app.py - Parser and AST → Symbol table: checks symbols
src/parser/parser.py - IDE and editor → AST interpreter: starts execution
src/gui/app.py - AST interpreter → Parser and AST: uses AST types
src/interpreter/interpreter.py - AST interpreter → Interactive terminal: sends output
src/gui/app.py - Interactive terminal → AST interpreter: provides input
src/gui/app.py - IDE and editor → .pqek files: saves files
src/gui/app.py - Package browser → .pqek files: lists files
src/gui/app.py - Package browser → IDE and editor: opens file
src/gui/app.py - IDE and editor → User: shows results
README.md