eww/crates/simplexpr
Roland Fredenhagen 6a64a28629
Add support for null safe indexing e.g. for arrays (#631)
* Add support for null safe indexing e.g. for arrays

This follows the JavaScript syntax:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining#syntax

* add docs

* Add test for safe access index to non indexable

Co-authored-by: Josiah Hilden <jhilden13@gmail.com>

Co-authored-by: Josiah Hilden <jhilden13@gmail.com>
Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>
2023-01-05 20:21:29 +01:00
..
src Add support for null safe indexing e.g. for arrays (#631) 2023-01-05 20:21:29 +01:00
build.rs Move to crates directory 2021-07-21 19:20:47 +02:00
Cargo.toml Remove levenshtein crate in favor of strsim (#635) 2022-12-07 16:14:13 +01:00
README.md Move to crates directory 2021-07-21 19:20:47 +02:00
rust-toolchain Move to crates directory 2021-07-21 19:20:47 +02:00
rustfmt.toml Move to crates directory 2021-07-21 19:20:47 +02:00

simplexpr

simplexpr is a parser and interpreter for a simple expression syntax that can be embedded into other applications or crates. It is being developed to be used in eww, but may also other uses.

For now, this is highly experimental, unstable, and ugly. You most definitely do not want to use this crate.