aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/translation.lux3
1 files changed, 2 insertions, 1 deletions
diff --git a/new-luxc/source/luxc/lang/translation.lux b/new-luxc/source/luxc/lang/translation.lux
index c4ebf3642..cf3137aff 100644
--- a/new-luxc/source/luxc/lang/translation.lux
+++ b/new-luxc/source/luxc/lang/translation.lux
@@ -32,6 +32,7 @@
(&;Analyser)
(expressionA;analyser &eval;eval))
+(exception: #export Macro-Expansion-Failed)
(exception: #export Unrecognized-Statement)
(def: (translate code)
@@ -79,7 +80,7 @@
(#e;Success [compiler' output])
(#e;Error error)
- ((&;fail error) compiler)))
+ ((&;throw Macro-Expansion-Failed error) compiler)))
_ (monad;map @ translate expansion)]
(wrap []))
(&;throw Unrecognized-Statement (%code code))))