aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index d31ee0d..866e0a3 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -50,10 +50,11 @@ nextable_enum!(Prec {
});
-#[derive(Debug, Clone)]
+#[derive(Clone)]
pub struct Prog {
pub blocks: Vec<Rc<RefCell<Block>>>,
pub blobs: Vec<Rc<Blob>>,
+ pub functions: Vec<RustFunction>,
}
#[derive(Debug, Clone)]
@@ -1077,6 +1078,7 @@ impl Compiler {
Ok(Prog {
blocks: self.blocks.clone(),
blobs: self.blobs.iter().map(|x| Rc::new(x.clone())).collect(),
+ functions: functions.iter().map(|(_, f)| *f).collect(),
})
} else {
Err(self.errors.clone())