File tree Expand file tree Collapse file tree 4 files changed +205
-192
lines changed Expand file tree Collapse file tree 4 files changed +205
-192
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,6 @@ pub enum Cont {
111111 next : Rc < Expr > ,
112112 cont : Rc < Cont > ,
113113 } ,
114- SimpleLet {
115- arg : Symbol ,
116- cont : Rc < Cont > ,
117- } ,
118114 Conditional {
119115 consequent : Rc < Expr > ,
120116 alternate : Option < Rc < Expr > > ,
Original file line number Diff line number Diff line change @@ -227,17 +227,6 @@ pub(crate) fn eval_expr(state: State) -> Bouncer {
227227 winds,
228228 } ) ,
229229 } ,
230- Expr :: SimpleLet { arg, value, body } => Bouncer :: Bounce ( State {
231- acc : Acc :: Expr ( value. clone ( ) ) ,
232- cont : Rc :: new ( Cont :: SimpleLet {
233- arg : * arg,
234- cont : Cont :: from_body ( body, Some ( cont) ) ,
235- } ) ,
236- env,
237- rib,
238- stack,
239- winds,
240- } ) ,
241230 Expr :: Undefined => Bouncer :: Bounce ( State {
242231 acc : Acc :: Obj ( Ok ( ObjectRef :: Undefined ) ) ,
243232 cont,
@@ -312,17 +301,6 @@ pub(crate) fn eval_expr(state: State) -> Bouncer {
312301 winds,
313302 } )
314303 }
315- Cont :: SimpleLet { arg, cont } => {
316- env. insert ( * arg, obj) ;
317- Bouncer :: Bounce ( State {
318- acc : Acc :: Obj ( Ok ( ObjectRef :: Undefined ) ) ,
319- cont : cont. clone ( ) ,
320- env,
321- rib,
322- stack,
323- winds,
324- } )
325- }
326304 Cont :: Conditional {
327305 consequent,
328306 alternate,
Original file line number Diff line number Diff line change @@ -52,11 +52,6 @@ pub enum Expr {
5252 value : Rc < Expr > ,
5353 } ,
5454 Begin ( Vec < Rc < Expr > > ) ,
55- SimpleLet {
56- arg : Symbol ,
57- value : Rc < Expr > ,
58- body : Vec < ExprOrDef > ,
59- } ,
6055 Undefined ,
6156}
6257
You can’t perform that action at this time.
0 commit comments