aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lux.clj2
-rw-r--r--src/lux/compiler.clj2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lux.clj b/src/lux.clj
index f21a336e0..6efbcc207 100644
--- a/src/lux.clj
+++ b/src/lux.clj
@@ -24,7 +24,7 @@
;; TODO: Reinplement "if" as a macro on top of case.
;; TODO:
- (let [source-code (slurp "test2.lux")
+ (let [source-code (slurp "source/test2.lux")
tokens (&lexer/lex source-code)
;; _ (prn 'tokens tokens)
syntax (&parser/parse tokens)
diff --git a/src/lux/compiler.clj b/src/lux/compiler.clj
index 2a347aa46..5b901c08e 100644
--- a/src/lux/compiler.clj
+++ b/src/lux/compiler.clj
@@ -1105,7 +1105,7 @@
[::&analyser/use ?file ?alias]
(let [module-name (re-find #"[^/]+$" ?file)
;; _ (prn 'module-name module-name)
- source-code (slurp (str module-name ".lux"))
+ source-code (slurp (str "source/" module-name ".lux"))
;; _ (prn 'source-code source-code)
tokens (&lexer/lex source-code)
;; _ (prn 'tokens tokens)