calciumlang


Namecalciumlang JSON
Version 0.0.3 PyPI version JSON
download
home_pageNone
SummaryA Calcium language interpreter
upload_time2024-09-20 02:08:13
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords calcium interpreter json
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # calcium-py

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. It is primarily designed as a subset of Python.

## How to create the interpreter and run Calcium code

```python
from calciumlang.runtime import Runtime

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

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

## Applications using Calcium

With Blockly, [you can generate Calcium code in a visual environment](https://capg.app/) (for Japanese and Python syntax). This editor produces Calcium code (a JSON array) that can be executed by the calcium-py runtime.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "calciumlang",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "calcium, interpreter, json",
    "author": null,
    "author_email": "0xCAF2 <third@0xcaf2.dev>",
    "download_url": "https://files.pythonhosted.org/packages/a0/d2/ed8eba363c5beeadfd56b7265f807ec9ce92868bf8b704beb7ceea11d6dc/calciumlang-0.0.3.tar.gz",
    "platform": null,
    "description": "# calcium-py\n\nA Calcium language intepreter on Python\n\n## What is Calcium language?\n\nCalcium 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. It is primarily designed as a subset of Python.\n\n## How to create the interpreter and run Calcium code\n\n```python\nfrom calciumlang.runtime import Runtime\n\n# Calcium code is given as a JSON array.\ncalcium_code = [\n  [1, [], \"#\", \"0.0.3\"],\n  [1, [], \"expr\", [\"call\", [\"var\", \"print\"], [\"Hello, World.\"]]],\n  [1, [], \"end\"],\n]\n\n# The Runtime executes Calcium code.\nr = Runtime(calcium_code)\nr.run()  # outputs 'Hello, World.'\n```\n\n## Applications using Calcium\n\nWith Blockly, [you can generate Calcium code in a visual environment](https://capg.app/) (for Japanese and Python syntax). This editor produces Calcium code (a JSON array) that can be executed by the calcium-py runtime.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Calcium language interpreter",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/0xCAF2/calcium-py"
    },
    "split_keywords": [
        "calcium",
        " interpreter",
        " json"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a0d2ed8eba363c5beeadfd56b7265f807ec9ce92868bf8b704beb7ceea11d6dc",
                "md5": "2a78176fbc7577c38343cd08ac25bd44",
                "sha256": "4d737932c68e483f735cddfe824eeef06584f173cd395ef3e09af6fa8e743564"
            },
            "downloads": -1,
            "filename": "calciumlang-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "2a78176fbc7577c38343cd08ac25bd44",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 21332,
            "upload_time": "2024-09-20T02:08:13",
            "upload_time_iso_8601": "2024-09-20T02:08:13.440646Z",
            "url": "https://files.pythonhosted.org/packages/a0/d2/ed8eba363c5beeadfd56b7265f807ec9ce92868bf8b704beb7ceea11d6dc/calciumlang-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-20 02:08:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "0xCAF2",
    "github_project": "calcium-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "calciumlang"
}
        
Elapsed time: 0.34255s