A Calcium language interpreter
Project description
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
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.'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
calciumpy-0.3.0.tar.gz
(13.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
calciumpy-0.3.0-py3-none-any.whl
(22.0 kB
view details)
File details
Details for the file calciumpy-0.3.0.tar.gz.
File metadata
- Download URL: calciumpy-0.3.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32bec0dfe94fca494abf1171619acb620ccfd9802e643e1f800f8cf8dcd52352
|
|
| MD5 |
145d5f12ba6af068a41f4c1da7c3e7bb
|
|
| BLAKE2b-256 |
e2c1a13ea81ea348f2cb28535e9508ffebc0934f7b0732b57461698dab890b2f
|
File details
Details for the file calciumpy-0.3.0-py3-none-any.whl.
File metadata
- Download URL: calciumpy-0.3.0-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12b7beff31047e9e824d7850088fd0c43eea233cfb188a847982413a611b8796
|
|
| MD5 |
375c99832ed9861a73349985d1635236
|
|
| BLAKE2b-256 |
99e9e3d96c912270c1e7cb59a9335678604e0c48567446ae3afefc3dc4dabfdb
|