liteexpr


Nameliteexpr JSON
Version 0.0.10 PyPI version JSON
download
home_pagehttps://github.com/markuskimius/liteexpr
SummaryA light, expression language.
upload_time2024-04-13 14:29:24
maintainerNone
docs_urlNone
authorMark Kim
requires_pythonNone
licenseApache 2.0
keywords expression language antlr4
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # liteexpr

A light, expression language.


## Language Overview

For the language overview, see the [main page](https://github.com/markuskimius/liteexpr).
The rest of the document describes using liteexpr with Python.


## Installation

```sh
pip3 install liteexpr
```


## Example

```python
import liteexpr

symbols = liteexpr.SymbolTable({
    "grades" : {
        "alice" : "A",
        "bob"   : "B",
    }
})

liteexpr.eval("""
    PRINT("I have " + LEN(grades) + " students");
    PRINT("Alice's grade is " + grades.alice);
""", symbols)
```

Output:

```
I have 2 students
Alice's grade is A
```


## License

[Apache 2.0](https://github.com/markuskimius/liteexpr/blob/main/LICENSE)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/markuskimius/liteexpr",
    "name": "liteexpr",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "expression, language, antlr4",
    "author": "Mark Kim",
    "author_email": "markuskimius+py@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ce/c2/acdd62d6bd8d552232f402cb17d28613bb981cb6e961d881ad2bc83907db/liteexpr-0.0.10.tar.gz",
    "platform": null,
    "description": "# liteexpr\n\nA light, expression language.\n\n\n## Language Overview\n\nFor the language overview, see the [main page](https://github.com/markuskimius/liteexpr).\nThe rest of the document describes using liteexpr with Python.\n\n\n## Installation\n\n```sh\npip3 install liteexpr\n```\n\n\n## Example\n\n```python\nimport liteexpr\n\nsymbols = liteexpr.SymbolTable({\n    \"grades\" : {\n        \"alice\" : \"A\",\n        \"bob\"   : \"B\",\n    }\n})\n\nliteexpr.eval(\"\"\"\n    PRINT(\"I have \" + LEN(grades) + \" students\");\n    PRINT(\"Alice's grade is \" + grades.alice);\n\"\"\", symbols)\n```\n\nOutput:\n\n```\nI have 2 students\nAlice's grade is A\n```\n\n\n## License\n\n[Apache 2.0](https://github.com/markuskimius/liteexpr/blob/main/LICENSE)\n\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "A light, expression language.",
    "version": "0.0.10",
    "project_urls": {
        "Homepage": "https://github.com/markuskimius/liteexpr"
    },
    "split_keywords": [
        "expression",
        " language",
        " antlr4"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cec2acdd62d6bd8d552232f402cb17d28613bb981cb6e961d881ad2bc83907db",
                "md5": "1f65aa25aa90243a0c620f4984019605",
                "sha256": "45d5feda5668474482a776f0e6314d3796535d4a0df108e24dc4b1f6ef8917ec"
            },
            "downloads": -1,
            "filename": "liteexpr-0.0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "1f65aa25aa90243a0c620f4984019605",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 23318,
            "upload_time": "2024-04-13T14:29:24",
            "upload_time_iso_8601": "2024-04-13T14:29:24.530876Z",
            "url": "https://files.pythonhosted.org/packages/ce/c2/acdd62d6bd8d552232f402cb17d28613bb981cb6e961d881ad2bc83907db/liteexpr-0.0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-13 14:29:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "markuskimius",
    "github_project": "liteexpr",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "liteexpr"
}
        
Elapsed time: 0.23403s