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
Project details
Release history Release notifications | RSS feed
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)