From 51ff4d24b096189a50caf4ecdb6dda51dfbd7c37 Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Sat, 17 May 2025 12:06:27 +0200 Subject: [PATCH] eval lambda block: bubble up substitutions --- src/LambdaBlock.css | 6 +++++- src/LambdaBlock.tsx | 4 ++-- src/eval.ts | 28 ++++++++++++++++------------ 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/src/LambdaBlock.css b/src/LambdaBlock.css index 208e0f1..bdd65ec 100644 --- a/src/LambdaBlock.css +++ b/src/LambdaBlock.css @@ -1,5 +1,9 @@ -.lambdaExpr { +.lambdaBlock { display: inline-block; border: solid 1px darkgrey; margin: 2px; +} + +.lambdaInner { + display: inline-block; } \ No newline at end of file diff --git a/src/LambdaBlock.tsx b/src/LambdaBlock.tsx index abf684b..560a5cd 100644 --- a/src/LambdaBlock.tsx +++ b/src/LambdaBlock.tsx @@ -56,7 +56,7 @@ export function LambdaBlock({state, setState, suggestionPriority}: LambdaBlockPr t: getUnusedTypeVar(env), }); - return + return λ   @@ -72,7 +72,7 @@ export function LambdaBlock({state, setState, suggestionPriority}: LambdaBlockPr   :   -
+