# zeeelord/expression- architecture

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

- Interactive diagram: https://gitdiagram.com/zeeelord/expression-
- Repository: https://github.com/zeeelord/expression-

## Overview

This is a small Java expression-tree library. Callers provide an expression and, when needed, variable assignments; expressions evaluate to a number and report their free variables. The shown binary-operation base evaluates its two child expressions and combines their values through an abstract operation method. No concrete expression subclasses or external caller are present in the supplied tree, so those are not represented.

Main entry points: [`src/bcu/oladayo/expressiontree/BinaryOperation.java`](https://github.com/zeeelord/expression-/blob/main/src/bcu/oladayo/expressiontree/BinaryOperation.java) (Binary Operation), [`src/bcu/oladayo/expressiontree/Expression.java`](https://github.com/zeeelord/expression-/blob/main/src/bcu/oladayo/expressiontree/Expression.java) (Expression API)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_expression["Expression API<br/>[Expression.java]"]
node_binary_operation["Binary Operation"]

node_binary_operation -->|"extends"| node_expression
node_binary_operation -->|"evaluates children"| node_expression

click node_expression "https://github.com/zeeelord/expression-/blob/main/src/bcu/oladayo/expressiontree/Expression.java"
click node_binary_operation "https://github.com/zeeelord/expression-/blob/main/src/bcu/oladayo/expressiontree/BinaryOperation.java"

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_expression toneMint
class node_binary_operation toneTeal
```

## Components

### Other components

- [Expression API](https://github.com/zeeelord/expression-/blob/main/src/bcu/oladayo/expressiontree/Expression.java): `src/bcu/oladayo/expressiontree/Expression.java`
- [Binary Operation](https://github.com/zeeelord/expression-/blob/main/src/bcu/oladayo/expressiontree/BinaryOperation.java): `src/bcu/oladayo/expressiontree/BinaryOperation.java`

## Connections

- Binary Operation → Expression API: extends (evidence: `src/bcu/oladayo/expressiontree/BinaryOperation.java`)
- Binary Operation → Expression API: evaluates children (evidence: `src/bcu/oladayo/expressiontree/BinaryOperation.java`)
