Metadata-Version: 2.4
Name: meak-interpreter
Version: 0.1.0
Summary: A tiny interpreter REPL with get/how/clear accumulator commands.
Author: ge he kkk
License: MIT
Keywords: repl,interpreter,toy-language
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 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
