https://github.com/qdeduction/exprz
an expression library
https://github.com/qdeduction/exprz
expression-parsing expressions exprz s-expressions
Last synced: 2 months ago
JSON representation
an expression library
- Host: GitHub
- URL: https://github.com/qdeduction/exprz
- Owner: qdeduction
- License: isc
- Created: 2020-11-12T22:59:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-18T07:39:47.000Z (almost 5 years ago)
- Last Synced: 2026-03-18T09:45:20.909Z (3 months ago)
- Topics: expression-parsing, expressions, exprz, s-expressions
- Language: Rust
- Homepage: https://docs.rs/exprz
- Size: 219 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ExprZ
[](https://github.com/qdeduction/exprz/actions)
[](https://crates.io/crates/exprz)
[](https://docs.rs/exprz)
_An Expression Library_
## About
_ExprZ_ is an expression representation and parsing library. _ExprZ_ expressions are typed s-expressions formed from atoms or groups of expressions and represent enumerated types of the form
```rust
enum Expr {
Atom(A),
Group(Vec),
}
```
_ExprZ_ generalizes this `enum` by defining an `Expression` trait which encompasses the algebraic properties of the above `enum` but which affords the user the flexibility of a more efficient implementation.
_ExprZ_ comes with default implementations of `Expression` which use the Rust `alloc` library. To access these implementations use the `alloc` feature on the crate.
### Rust Nightly
The most recent version of _ExprZ_ uses the Rust nightly compiler toolchain which is necessary for defining the main `Expression` trait. In the future we hope to remove this requirement as the `Expression` API becomes more refined over time or once the standard compiler toolchain catches up.
## Getting Started
For more information on how to use _ExprZ_, see the [documentation](https://docs.rs/exprz).
## License
This project is licensed under the [ISC License](https://opensource.org/licenses/ISC). See [LICENSE](LICENSE) for more information.
---
[](https://github.com/bhgomes)
[](LICENSE)
[](https://github.com/qdeduction/exprz)