Metadata-Version: 2.3
Name: calciumpy
Version: 0.3.0
Summary: A Calcium language interpreter
Keywords: calcium,interpreter,json
Author: Roki Turner
Author-email: Roki Turner <roki@0xcaf2.dev>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Project-URL: Homepage, https://github.com/0xCAF2/calciumpy
Description-Content-Type: text/markdown

# calciumpy

A Calcium language intepreter on Python

## What is Calcium language?

Calcium is a programming language that takes a JSON array as input.
It is interoperable with the Python language,
allowing you to utilize Python's standard libraries and more.
Calcium is primarily designed as a subset of Python.

## How to create the interpreter and run code

```python
from calciumpy.runtime import Runtime

# Calcium code is given as a JSON array.
calcium_code = [
  [1, [], "#", "0.3.0"],
  [1, [], "expr", ["call", ["var", "print"], ["Hello, World."]]],
  [1, [], "end"],
]

# The Runtime executes Calcium code.
r = Runtime(calcium_code)
r.run()  # outputs 'Hello, World.'
```
