From 22a53ab297447c2f044d01bf443f7b140745762f Mon Sep 17 00:00:00 2001 From: Arnaud Bailly Date: Sat, 5 Oct 2024 10:41:55 +0200 Subject: Basic loop to send requests to registered clients --- rust/src/lambda.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rust/src/lambda.rs') diff --git a/rust/src/lambda.rs b/rust/src/lambda.rs index 6f394d8..7c8d9be 100644 --- a/rust/src/lambda.rs +++ b/rust/src/lambda.rs @@ -1,4 +1,5 @@ use rand::Rng; +use serde::{Deserialize, Serialize}; use std::collections::HashMap; use crate::ast::*; @@ -97,6 +98,10 @@ fn gensym() -> String { format!("x_{}", n1) } +pub fn generate_expr(size: u32) -> Value { + Value::Num(3) +} + #[cfg(test)] mod lambda_test { use crate::parser::parse; -- cgit v1.2.3