mirror of
https://github.com/gorules/zen.git
synced 2026-10-04 16:02:18 +00:00
16 lines
381 B
Rust
16 lines
381 B
Rust
use crate::{Isolate, IsolateError};
|
|
|
|
pub fn validate_unary_expression(expression: &str) -> Result<(), IsolateError> {
|
|
let mut isolate = Isolate::new();
|
|
isolate.compile_unary(expression)?;
|
|
|
|
Ok(())
|
|
}
|
|
|
|
pub fn validate_expression(expression: &str) -> Result<(), IsolateError> {
|
|
let mut isolate = Isolate::new();
|
|
isolate.compile_standard(expression)?;
|
|
|
|
Ok(())
|
|
}
|