Skip to main content

A light, expression language.

Project description

liteexpr

A light, expression language.

Language Overview

For the language overview, see the main page. The rest of the document describes using liteexpr with Python.

Installation

pip3 install liteexpr

Example

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

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

liteexpr-0.0.10.tar.gz (23.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page