https://github.com/engossoftware/secel
SECEL parser
https://github.com/engossoftware/secel
Last synced: 4 months ago
JSON representation
SECEL parser
- Host: GitHub
- URL: https://github.com/engossoftware/secel
- Owner: EngosSoftware
- License: apache-2.0
- Created: 2023-11-01T14:35:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T14:51:30.000Z (over 1 year ago)
- Last Synced: 2025-02-11T04:04:14.936Z (5 months ago)
- Language: Rust
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Simply Enough Condition Expression Language Parser
# WORK IN PROGRESS
## Simply Enough Condition Expression Language Grammar
```
statement = if_expression
;
if_expression = `if` `(` condition `;` expression `;` expression `)`
;
condition = disjunction { `or` disjunction }
;
disjunction = conjunction { `and` conjunction }
;
conjunction = `(` condition `)`
| comparison
;
comparison = value (`=` | `<>` | `>` | `<` | `>=` | `<=`) value
;
expression = value
| if_expression
;
value = NUMBER
| NULL
;
```## License
Licensed under either of
- [MIT license](https://opensource.org/licenses/MIT) ([LICENSE-MIT](LICENSE-MIT)), or
- [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) ([LICENSE-APACHE](LICENSE-APACHE))at your option.
## Contribution
All contributions intentionally submitted for inclusion in the work by you,
shall be dual licensed as above, without any additional terms or conditions.