aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/nixexpr-ast.def
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-03-25 14:51:04 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-03-25 14:51:04 +0000
commit25eedf085d9b3a1ad7d0e6969b050a2f73234ae3 (patch)
tree96786c1282eedb34b31214e0fce10eaf509b44e2 /src/libexpr/nixexpr-ast.def
parent3c9f8fc9b609b13986a1d59d08a7a79ad42d0bd5 (diff)
* Quick and dirty implementation of `with'. `with e1; e2' is
basically desugared to `let <with> = e1; e2', and `lookupVar' looks in each <with> in the environment chain for an attribute with the specified name.
Diffstat (limited to 'src/libexpr/nixexpr-ast.def')
-rw-r--r--src/libexpr/nixexpr-ast.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/nixexpr-ast.def b/src/libexpr/nixexpr-ast.def
index 2bf8492dd..b34466543 100644
--- a/src/libexpr/nixexpr-ast.def
+++ b/src/libexpr/nixexpr-ast.def
@@ -95,3 +95,4 @@ eTrue = makeBool(makeTrue())
eFalse = makeBool(makeFalse())
sOverrides = toATerm("__overrides")
sNoAlias = toATerm("")
+sWith = toATerm("<with>")