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.4.1"],
[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.4.1.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.4.1-py3-none-any.whl
(22.1 kB
view details)
File details
Details for the file calciumpy-0.4.1.tar.gz.
File metadata
- Download URL: calciumpy-0.4.1.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 |
6c9bcdf10de2a53ce618a0226d6d404dd2b7a912cc8f34001b92d730efdfa4a4
|
|
| MD5 |
5058af7556e92edfdff61864c7d3bf0a
|
|
| BLAKE2b-256 |
f3991fc21180830f170ddf07e6dfeee868362e234eed0ae96c55bf986b5bf821
|
File details
Details for the file calciumpy-0.4.1-py3-none-any.whl.
File metadata
- Download URL: calciumpy-0.4.1-py3-none-any.whl
- Upload date:
- Size: 22.1 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 |
651101033a57648200115043f6c1e65958dcf6d984573725a738a2e18ae8a4ba
|
|
| MD5 |
2109ff7c12732dc5b2e67d97d9d3c447
|
|
| BLAKE2b-256 |
49645560e7cd5828a2f8f4cd5bf14499536d66733578479ebf2eb3d243d7b76f
|