prepare for removing private stuff

This commit is contained in:
mehbark 2023-06-15 01:01:27 -04:00
parent 4081bb526c
commit b10b94865f
2 changed files with 11 additions and 2 deletions

View file

@ -1014,5 +1014,3 @@ pub fn run_program(src: &str, step_limit: usize, complexity_limit: usize) -> Opt
eprintln!("Complexity: {}", simped.complexity()); eprintln!("Complexity: {}", simped.complexity());
Some(simped) Some(simped)
} }
// (forall (a b) (+ a (succ b)) (succ (+ a b))) (forall (a) (+ a 0) a) (forall (a) (= a a) true) (= (+ (succ 0) (succ 0)) (succ (succ 0)))

11
src/typed.rs Normal file
View file

@ -0,0 +1,11 @@
use crate::*;
// Do I want arbitrary types (a sexp) or a limited set (likely the one found in Pie)?
// I'm going to do a limited set first.
// I'm going to do arbitrary first.
#[derive(Debug, Clone)]
pub struct TypedSexp<Ty: fmt::Display + Debug + Clone> {
typ: Ty,
val: Sexp,
}