aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/compiler/default/reference.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-08-08 22:29:33 -0400
committerEduardo Julian2018-08-08 22:29:33 -0400
commit2ab2c4dc219e5d3667f4f2626166dfc782052fe3 (patch)
tree14735c2348d631aea472c155e0ec9f00f0b7db43 /stdlib/source/lux/compiler/default/reference.lux
parent32db706bd8df4901321fce9f87ce06847d2ce4de (diff)
- Re-defined the relationship between analysis and evaluation.
- Fixed some bugs.
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/compiler/default/reference.lux14
1 files changed, 13 insertions, 1 deletions
diff --git a/stdlib/source/lux/compiler/default/reference.lux b/stdlib/source/lux/compiler/default/reference.lux
index 0bbeb2db5..cde1f5b5c 100644
--- a/stdlib/source/lux/compiler/default/reference.lux
+++ b/stdlib/source/lux/compiler/default/reference.lux
@@ -3,7 +3,10 @@
[control
[equivalence (#+ Equivalence)]
[hash (#+ Hash)]
- pipe]])
+ pipe]
+ [data
+ [text
+ format]]])
(type: #export Register Nat)
@@ -65,3 +68,12 @@
_
#0)))
+
+(def: #export (%variable variable)
+ (Format Variable)
+ (case variable
+ (#Local local)
+ (format "+" (%n local))
+
+ (#Foreign foreign)
+ (format "-" (%n foreign))))