1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use dmntk_feel_parser::dmntk_feel::dmntk_common::Result;
use dmntk_feel_parser::dmntk_feel::values::Value;
use dmntk_feel_parser::dmntk_feel::Scope;
pub(crate) mod enricher;
mod errors;
pub(crate) mod eval;
pub(crate) mod eval_bkm;
pub(crate) mod eval_dec;
pub(crate) mod eval_dec_service;
pub(crate) mod eval_dec_table;
#[cfg(test)]
mod tests;
pub fn evaluate_decision_table_from_text(scope: &Scope, input: &str) -> Result<Value> {
crate::model::eval_dec_table::evaluate_decision_table(scope, dmntk_recognizer::build(&input)?)
}
pub fn evaluate_decision_table_and_context(decision_table_input: &str, context_input: &str) -> Result<Value> {
let scope: Scope = crate::evaluate_context(&Scope::default(), context_input)?.into();
evaluate_decision_table_from_text(&scope, decision_table_input)
}
pub fn evaluate_decision_table_and_test(_input: &str, _sep: &str) -> Result<(bool, Value, Value)> {
unimplemented!()
}