Metric to assess complexity of codebase.

### Definition

vocabulary = unique operators + unique operands length = total operators + total operands

volume definition: $volume=length∗log_{2}(vocabulary)$

### Details

Most examples on the internet explain just how to compute the volume for a single function.

operands:

- identifiers
- constants

what about:

- type_names
- type_specifications

operators:

- mathematical operators
- control flow structures
- function calls
- member access
- a.b → get(a, b)

we can probably define everything as queries