Split eval.rs out of ast.rs, and rename ast.rs to basic.rs. Copy it over to opt.rs, and hook up a From<> impl and a congruent(x)->bool function, and add to main.rs and test.rs. Now we actually have to make opt.rs optimize...

This commit is contained in:
2023-07-06 01:11:56 -04:00
parent f4ae4db92d
commit b077daf12e
6 changed files with 479 additions and 195 deletions

View File

@@ -1,6 +1,7 @@
use std::str::FromStr;
use std::rc::Rc;
use crate::ast::{Form,FormT};
use crate::basic::Form;
use crate::eval::FormT;
grammar;