# deliciousnesquik/roman architecture

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

- Interactive diagram: https://gitdiagram.com/deliciousnesquik/roman
- Repository: https://github.com/deliciousnesquik/roman

## Overview

Roman is a small, dependency-free C# library for creating and converting Roman numeral values, parsing in strict or lenient modes, performing range-checked arithmetic, and comparing values. Its principal workflow is a caller creating a Roman value from an integer or string, optionally selecting a parsing style, then using the value’s conversion, arithmetic, or comparison APIs. These runtime responsibilities reside in one implementation file; the style enum is a separate public type. The map reflects README capabilities and shown source references; it does not infer links between individual operations.

Main entry points: [`RomanNumerals/RomanNumerals.cs`](https://github.com/deliciousnesquik/roman/blob/main/RomanNumerals/RomanNumerals.cs) (Roman value API), [`RomanNumerals/RomanStyle.cs`](https://github.com/deliciousnesquik/roman/blob/main/RomanNumerals/RomanStyle.cs) (Parsing style)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Library caller"))
node_roman["Roman value API<br/>[RomanNumerals.cs]"]
node_style["Parsing style<br/>[RomanStyle.cs]"]

node_caller -->|"creates and uses"| node_roman
node_caller -->|"selects mode"| node_style
node_roman -->|"validates mode"| node_style

click node_roman "https://github.com/deliciousnesquik/roman/blob/main/RomanNumerals/RomanNumerals.cs"
click node_style "https://github.com/deliciousnesquik/roman/blob/main/RomanNumerals/RomanStyle.cs"

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_caller toneIndigo
class node_roman toneMint
class node_style toneTeal
```

## Components

### Other components

- **Library caller**
- [Roman value API](https://github.com/deliciousnesquik/roman/blob/main/RomanNumerals/RomanNumerals.cs): `RomanNumerals/RomanNumerals.cs`
- [Parsing style](https://github.com/deliciousnesquik/roman/blob/main/RomanNumerals/RomanStyle.cs): `RomanNumerals/RomanStyle.cs`

## Connections

- Library caller → Roman value API: creates and uses (evidence: `README.md`)
- Library caller → Parsing style: selects mode (evidence: `README.md`)
- Roman value API → Parsing style: validates mode (evidence: `RomanNumerals/RomanNumerals.cs`)
