policy_engine/
lib.rs

1//! Policy Engine allows to dynamically evaluate and enforce policies easily. 
2//! 
3//! Currently, the crate has a parser.
4
5/// The parser is a recursive descent parser that can parse a string and evalute it
6/// 
7/// Supported operands are `>`,`<`,`>=`,`<=`,`==`
8/// 
9/// `evaluate_expressions` is the main function that evaluates two expressions which
10/// is recursively called for each sub-expression (group of AND and OR expression)
11/// 
12/// Later, `parse_comparison` is called, which parses a comparison expression
13pub mod parser;
14
15/// `Services` contains the top level APIs and data structures such Policies, Predicates, Actions, etc.
16pub mod services;
17
18/// `Tokenizer` holds a simple tokenizer that can tokenize a string into a vector of tokens
19pub mod tokenizer;
20
21/// `Error` contains the error types for the crate
22pub mod error;