diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-03-25T14·51+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-03-25T14·51+0000 |
commit | 25eedf085d9b3a1ad7d0e6969b050a2f73234ae3 (patch) | |
tree | 96786c1282eedb34b31214e0fce10eaf509b44e2 /src/libexpr/nixexpr-ast.def | |
parent | 3c9f8fc9b609b13986a1d59d08a7a79ad42d0bd5 (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.def | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/nixexpr-ast.def b/src/libexpr/nixexpr-ast.def index 2bf8492dd05e..b344665430c9 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>") |