semvec/pypi-packages huggingface dataset:
liteexpr 0.0.8
A light, expression language.
License: Apache 2.0
Keywords: expression,language,antlr4

# 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)