From 3439602c2b356eaef3359b6496a0237f1af55e33 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 26 Oct 2017 21:41:41 -0400 Subject: - Added a new piece of compiler state, just for storing the current-module. --- new-luxc/test/test/luxc/common.lux | 35 ++++------------------------------- 1 file changed, 4 insertions(+), 31 deletions(-) (limited to 'new-luxc/test') diff --git a/new-luxc/test/test/luxc/common.lux b/new-luxc/test/test/luxc/common.lux index 2e725be5d..5b6fed8ec 100644 --- a/new-luxc/test/test/luxc/common.lux +++ b/new-luxc/test/test/luxc/common.lux @@ -1,36 +1,9 @@ (;module: lux - (lux (control pipe) - ["r" math/random "r/" Monad] - (data ["R" error]) - [meta] - (meta [code]) - [io]) - (luxc ["&" base] - [analyser] - ["&;" host])) - -(def: init-info - Info - {#;target "JVM" - #;version &;version - #;mode #;Build}) - -(def: init-type-context - Type-Context - {#;ex-counter +0 - #;var-counter +0 - #;var-bindings (list)}) + (lux [io]) + (luxc ["&;" host] + [";G" generator])) (def: #export (init-compiler _) (-> Top Compiler) - {#;info init-info - #;source [dummy-cursor +0 ""] - #;cursor dummy-cursor - #;modules (list) - #;scopes (list) - #;type-context init-type-context - #;expected #;None - #;seed +0 - #;scope-type-vars (list) - #;host (:! Void (io;run &host;init-host))}) + (generatorG;init-compiler (io;run &host;init-host))) -- cgit v1.2.3