2024-01-22 17:34:40 +00:00
|
|
|
mod tests;
|
|
|
|
|
|
|
|
use crate::ast::Node;
|
|
|
|
|
2024-01-24 12:51:37 +00:00
|
|
|
pub fn negation_normal_form(formula: &str) -> String {
|
2024-01-23 20:20:03 +00:00
|
|
|
let mut ast = Node::<char>::parse_formula(formula);
|
|
|
|
ast.simplify();
|
|
|
|
Node::<char>::ast_to_formula(&ast)
|
2024-01-24 12:27:46 +00:00
|
|
|
}
|