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.2"],
[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.2.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.2-py3-none-any.whl
(22.1 kB
view details)
File details
Details for the file calciumpy-0.4.2.tar.gz.
File metadata
- Download URL: calciumpy-0.4.2.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 |
4bf3a323a50dcea382862144b5341c6e85935bd32992f94be04a207000b88286
|
|
| MD5 |
7bf8439b3cb1e30bb5508125186de02b
|
|
| BLAKE2b-256 |
849bac022fef0841f0ccaf33393baebff35a1b6cfccef10b035853ebd3f74c95
|
File details
Details for the file calciumpy-0.4.2-py3-none-any.whl.
File metadata
- Download URL: calciumpy-0.4.2-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 |
b1450492d43cc1a3609cafa9f1b36ba26ffbedb92e611b840a93f2096c333082
|
|
| MD5 |
a383d2448bbb52fca52279296d055faa
|
|
| BLAKE2b-256 |
a48ca0d9c6d2c963972d4c533ebf7369a6526ef553ab286637a6021ae1066eaf
|