# meak-interpreter

A tiny interpreter REPL with exact rational arithmetic and get/how/clear accumulator commands.

## Features

- Exact rational arithmetic using Python's `Fraction`
- Operators: `+`, `-`, `*`, `/`, `^` (exponentiation)
- Special operators: `for` (addition/concatenation), `o` (variable access)
- Unary `?` operator for value inspection
- Accumulator commands: `get`, `how`, `clear`
- Built-in functions: `abs`, `pow`, `gcd`, `lcm`

## Installation

```bash
pip install -e .
```

## Usage

Run the REPL:

```bash
meak
```

Or use as a Python module:

```python
from meak_interpreter import MeakInterpreter

interp = MeakInterpreter()
interp.repl()
```

## Examples

```
meak> 1/3 + 1/6
1/2
meak> x = 10
meak> y = 20
meak> x + y
30
meak> get 100
meak> get 50
meak> how
150
meak> clear
```

## License

MIT
