This commit is contained in:
radrow 2022-07-03 17:09:21 +02:00
parent ffc63704fb
commit 126a78455b

View File

@ -381,10 +381,10 @@ to_scode1(Env, {loop, Init, It, Expr}) ->
[{loop, InitS, It, ExprS, ContRef, BreakRef}]; [{loop, InitS, It, ExprS, ContRef, BreakRef}];
to_scode1(Env = #env{loop_it = It}, {continue, Expr}) -> to_scode1(Env = #env{loop_it = It}, {continue, Expr}) ->
ExprS = to_scode1(Env, Expr), ExprS = to_scode1(Env, Expr),
ExprS ++ [aeb_fate_ops:store({var, It}, {stack, 0}), push(?i(1))]; ExprS ++ [aeb_fate_ops:store({var, It}, {stack, 0}), push(?i(true))];
to_scode1(Env, {break, Expr}) -> to_scode1(Env, {break, Expr}) ->
ExprS = to_scode1(Env, Expr), ExprS = to_scode1(Env, Expr),
ExprS ++ [push(?i(0))]; ExprS ++ [push(?i(false))];
to_scode1(Env, {switch, Case}) -> to_scode1(Env, {switch, Case}) ->
split_to_scode(Env, Case). split_to_scode(Env, Case).