From 012f6bd41e527479dddbccbdab10daa78fd9a0fd Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 1 Nov 2017 00:51:45 -0400 Subject: - Re-organized code-generation, and re-named it "translation". --- new-luxc/source/luxc/generator/procedure.jvm.lux | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 new-luxc/source/luxc/generator/procedure.jvm.lux (limited to 'new-luxc/source/luxc/generator/procedure.jvm.lux') diff --git a/new-luxc/source/luxc/generator/procedure.jvm.lux b/new-luxc/source/luxc/generator/procedure.jvm.lux deleted file mode 100644 index 973f0e968..000000000 --- a/new-luxc/source/luxc/generator/procedure.jvm.lux +++ /dev/null @@ -1,24 +0,0 @@ -(;module: - lux - (lux (control [monad #+ do]) - (data [maybe] - text/format - (coll [dict]))) - (luxc ["&" base] - (host ["$" jvm]) - (lang ["ls" synthesis])) - (. ["./;" common] - ["./;" host])) - -(def: procedures - ./common;Bundle - (|> ./common;procedures - (dict;merge ./host;procedures))) - -(def: #export (generate-procedure generate name args) - (-> (-> ls;Synthesis (Meta $;Inst)) Text (List ls;Synthesis) - (Meta $;Inst)) - (<| (maybe;default (&;fail (format "Unknown procedure: " (%t name)))) - (do maybe;Monad - [proc (dict;get name procedures)] - (wrap (proc generate args))))) -- cgit v1.2.3