pub trait Language: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn create_expression(
&self,
script: &str,
) -> Result<Box<dyn Expression>, LanguageError>;
fn create_predicate(
&self,
script: &str,
) -> Result<Box<dyn Predicate>, LanguageError>;
}Expand description
A Language factory: produces Expression and Predicate objects.