diff options
author | Eduardo Julian | 2017-11-14 02:00:14 -0400 |
---|---|---|
committer | Eduardo Julian | 2017-11-14 02:00:14 -0400 |
commit | 72603f38074a67f9ab1e53df1b5fb5da3836162d (patch) | |
tree | a6cb2b675d41ff97fa7b26f1b15123cc54d60362 /new-luxc/source/luxc/lang/translation/function.jvm.lux | |
parent | 4a43c41d139dfed45a8ed9b2308cf97fd6f3a59a (diff) |
- Implemented loop translation.
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/function.jvm.lux')
-rw-r--r-- | new-luxc/source/luxc/lang/translation/function.jvm.lux | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/new-luxc/source/luxc/lang/translation/function.jvm.lux b/new-luxc/source/luxc/lang/translation/function.jvm.lux index ea6d371fa..0247b3d7f 100644 --- a/new-luxc/source/luxc/lang/translation/function.jvm.lux +++ b/new-luxc/source/luxc/lang/translation/function.jvm.lux @@ -321,28 +321,3 @@ $i;fuse)]] (wrap (|>. functionI applyI)))) - -(def: #export (translate-recur translate argsS) - (-> (-> ls;Synthesis (Meta $;Inst)) - (List ls;Synthesis) - (Meta $;Inst)) - (do meta;Monad<Meta> - [[@begin offset] hostL;anchor - argsI (monad;map @ (function [[register argS]] - (let [register' (n.+ offset register)] - (: (Meta $;Inst) - (case argS - (^multi (^code ((~ [_ (#;Int var)]))) - (i.= (variableL;local register') - var)) - (wrap id) - - _ - (do @ - [argI (translate argS)] - (wrap (|>. argI - ($i;ASTORE register')))))))) - (list;zip2 (list;n.range +0 (n.dec (list;size argsS))) - argsS))] - (wrap (|>. ($i;fuse argsI) - ($i;GOTO @begin))))) |