rustup override set nightly
cargo run
Splits input string into tokens
Evaluation logic for exprs like A && B && !C => H = M
Logic for exprs like H = M => K = D + (D * E / 10)
combines Base1 and Base2
- Incoming string
A && B && !C => H = Mparses into intermidiate representation like
vec![Token::A, Token::And, Token::B]; // and so on- Then it converts into second called
Executable. Internally it is https://en.wikipedia.org/wiki/Reverse_Polish_notation - Is executes...
base1 expressions (a && b) compared by vec![Token]
base2 expression (D / F) compares by H = M
Api examples in main.rs test mod.
GET: http://localhost:8000/true/true/true/1.0/52/1 POST: http://localhost:8000/true/true/true/1.0/52/1 with data
{"exprs": ["A && B && !C => H = P"]}