# cabelonatas/butus architecture

> Architecture diagram of the GitHub repository cabelonatas/butus, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cabelonatas/butus
- Repository: https://github.com/cabelonatas/butus

## Overview

Butus is a Portuguese programming language whose documented workflow is writing `.grr` or `.butus` code and executing it with the runtime. The README describes lexer/parser, evaluation, control flow, and runtime capabilities, but no source excerpts are available and those source files are absent from the tree. Accordingly, subsystem paths are null; relationships below reflect only documented behavior, not inspected implementation details.

Main entry points: [`build/butus`](https://github.com/cabelonatas/butus/blob/main/build/butus) (Butus runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_language["Language processing"]
  node_lexer["Lexer"]
  node_parser["Parser"]
  node_modules["Module imports"]
end

subgraph group_execution["Execution"]
  node_runtime["Butus runtime"]
  node_evaluation["Expression evaluation"]
  node_control["Scopes and control flow"]
end

subgraph group_system["System capabilities"]
  node_io["Input and file I/O"]
  node_commands["Command execution"]
  node_network["Port listening"]
end

subgraph group_artifacts["Files and output"]
  node_code["Butus code"]
  node_html["HTML output"]
  node_data[("&#96;.dbt&#96; data files")]
end

node_developer(("Program author"))

node_developer -->|"writes"| node_code
node_code -->|"executes"| node_runtime
node_runtime -->|"tokenizes"| node_lexer
node_runtime -->|"parses"| node_parser
node_runtime -->|"evaluates"| node_evaluation
node_runtime -->|"supports"| node_control
node_runtime -->|"recognizes imports"| node_modules
node_runtime -->|"provides"| node_io
node_runtime -->|"provides"| node_commands
node_runtime -->|"provides"| node_network
node_runtime -->|"generates"| node_html
node_runtime -.->|"uses ecosystem data"| node_data
node_modules -.->|"loads modules"| node_code

click node_runtime "https://github.com/cabelonatas/butus/blob/main/build/butus"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_lexer,node_parser,node_modules toneBlue
class node_runtime,node_evaluation,node_control toneAmber
class node_io,node_commands,node_network toneMint
class node_code,node_html,node_data toneRose
class node_developer toneIndigo
```

## Components

### Language processing

- **Lexer**
- **Parser**
- **Module imports**

### Execution

- [Butus runtime](https://github.com/cabelonatas/butus/blob/main/build/butus): `build/butus`
- **Expression evaluation**
- **Scopes and control flow**

### System capabilities

- **Input and file I/O**
- **Command execution**
- **Port listening**

### Files and output

- **Butus code**
- **HTML output**
- **`.dbt` data files**

### Other components

- **Program author**

## Connections

- Program author → Butus code: writes (evidence: `README.md`)
- Butus code → Butus runtime: executes (evidence: `README.md`)
- Butus runtime → Lexer: tokenizes (evidence: `README.md`)
- Butus runtime → Parser: parses (evidence: `README.md`)
- Butus runtime → Expression evaluation: evaluates (evidence: `README.md`)
- Butus runtime → Scopes and control flow: supports (evidence: `README.md`)
- Butus runtime → Module imports: recognizes imports (evidence: `README.md`)
- Butus runtime → Input and file I/O: provides (evidence: `README.md`)
- Butus runtime → Command execution: provides (evidence: `README.md`)
- Butus runtime → Port listening: provides (evidence: `README.md`)
- Butus runtime → HTML output: generates (evidence: `README.md`)
- Butus runtime → `.dbt` data files: uses ecosystem data
- Module imports → Butus code: loads modules
