# fdbozzo/foxbin2prg architecture

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

- Interactive diagram: https://gitdiagram.com/fdbozzo/foxbin2prg
- Repository: https://github.com/fdbozzo/foxbin2prg

## Overview

FoxBin2Prg converts Visual FoxPro binary project and object files to readable, editable text representations and back, for source control, comparison, backup, and standalone use. The documented workflow starts with a user selecting a file or directory, invoking FoxBin2Prg in a conversion direction, and receiving the corresponding representation. The README also describes configuration templates, configurable extensions, class-per-file output, SCM compatibility, and interactive or SendTo operation. No source excerpts were provided, so internal conversion stages are represented only where the README documents them.

Main entry points: [`foxbin2prg.prg`](https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.prg) (FoxBin2Prg), [`foxbin2prg.cfg.txt`](https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.cfg.txt) (Conversion settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversion["Conversion"]
  node_engine["FoxBin2Prg<br/>[foxbin2prg.prg]"]
  node_binary["FoxPro binaries"]
  node_text["Text representations"]
  node_classfiles["Class-per-file output<br/>[foxbin2prg.prg]"]
end

subgraph group_configuration["Configuration"]
  node_settings["Conversion settings<br/>[foxbin2prg.cfg.txt]"]
  node_templates["Config templates<br/>[foxbin2prg.prg]"]
end

subgraph group_integrations["Usage and integrations"]
  node_scm["SCM and VCS"]
  node_diffmerge["Diff and merge"]
  node_interactive["Interactive options<br/>[foxbin2prg.prg]"]
  node_sendto["Windows SendTo"]
end

node_user(("FoxPro user"))

node_user -->|"invokes conversion"| node_engine
node_engine -->|"generates text"| node_text
node_engine -->|"regenerates binaries"| node_binary
node_engine -->|"can split output"| node_classfiles
node_engine -->|"uses configuration"| node_settings
node_engine -->|"generates templates"| node_templates
node_text -->|"supports source control"| node_scm
node_text -->|"supports comparison"| node_diffmerge
node_user -->|"requests options"| node_interactive
node_sendto -->|"launches conversion"| node_engine

click node_engine "https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.prg"
click node_classfiles "https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.prg"
click node_settings "https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.cfg.txt"
click node_templates "https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.prg"
click node_interactive "https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.prg"

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_engine,node_binary,node_text,node_classfiles,node_user toneBlue
class node_settings,node_templates toneAmber
class node_scm,node_diffmerge,node_interactive,node_sendto toneMint
```

## Components

### Conversion

- [FoxBin2Prg](https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.prg): `foxbin2prg.prg`
- **FoxPro binaries**
- **Text representations**
- [Class-per-file output](https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.prg): `foxbin2prg.prg`

### Configuration

- [Conversion settings](https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.cfg.txt): `foxbin2prg.cfg.txt`
- [Config templates](https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.prg): `foxbin2prg.prg`

### Usage and integrations

- **SCM and VCS**
- **Diff and merge**
- [Interactive options](https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.prg): `foxbin2prg.prg`
- **Windows SendTo**

### Other components

- **FoxPro user**

## Connections

- FoxPro user → FoxBin2Prg: invokes conversion (evidence: `README.md`)
- FoxBin2Prg → Text representations: generates text (evidence: `README.md`)
- FoxBin2Prg → FoxPro binaries: regenerates binaries (evidence: `README.md`)
- FoxBin2Prg → Class-per-file output: can split output (evidence: `README.md`)
- FoxBin2Prg → Conversion settings: uses configuration (evidence: `README.md`)
- FoxBin2Prg → Config templates: generates templates (evidence: `README.md`)
- Text representations → SCM and VCS: supports source control (evidence: `README.md`)
- Text representations → Diff and merge: supports comparison (evidence: `README.md`)
- FoxPro user → Interactive options: requests options (evidence: `README.md`)
- Windows SendTo → FoxBin2Prg: launches conversion (evidence: `README.md`)
