lix/src/libexpr
Shea Levy 136f2f7046 Add the ExprBuiltin Expr type to the AST
Certain desugaring schemes may require the parser to use some builtin
function to do some of the work (e.g. currently `throw` is used to
lazily cause an error if a `<>`-style path is not in the search path)
Unfortunately, these names are not reserved keywords, so an expression
that uses such a syntactic sugar will not see the expected behavior
(see tests/lang/eval-okay-redefine-builtin.nix for an example).

This adds the ExprBuiltin AST type, which when evaluated uses the value
from the rootmost variable scope (which of course is initialized
internally and can't shadow any of the builtins).

Signed-off-by: Shea Levy <shea@shealevy.com>
2013-12-31 17:45:47 +00:00
..
attr-path.cc Support quoted attribute names in -A 2013-11-18 10:21:12 +00:00
attr-path.hh Work on Values instead of Exprs 2013-09-03 13:17:51 +00:00
common-opts.cc Fix error message 2012-02-09 18:56:48 +01:00
common-opts.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
eval-inline.hh Get rid of an intermediary on the stack 2013-11-12 11:32:23 +00:00
eval.cc Add the ExprBuiltin Expr type to the AST 2013-12-31 17:45:47 +00:00
eval.hh Add a toJSON primop 2013-11-19 00:04:11 +01:00
get-drvs.cc Check meta values and warn about bad ones 2013-11-19 14:29:39 +01:00
get-drvs.hh Check meta values and warn about bad ones 2013-11-19 14:29:39 +01:00
lexer.l Fix whitespace 2013-09-02 16:29:15 +02:00
Makefile.am Add a toJSON primop 2013-11-19 00:04:11 +01:00
names.cc nix-env: Use wildcard match by default 2013-09-03 16:35:49 +02:00
names.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
nix.sdf
nixexpr.cc Add the ExprBuiltin Expr type to the AST 2013-12-31 17:45:47 +00:00
nixexpr.hh Add the ExprBuiltin Expr type to the AST 2013-12-31 17:45:47 +00:00
parser.y Add the ExprBuiltin Expr type to the AST 2013-12-31 17:45:47 +00:00
primops.cc Bump language version for new storePath feature 2013-12-10 15:07:04 +01:00
symbol-table.hh Rename "attribute sets" to "sets" 2013-10-24 16:41:04 +02:00
value-to-json.cc Refactor JSON output 2013-11-19 00:33:06 +01:00
value-to-json.hh Refactor JSON output 2013-11-19 00:33:06 +01:00
value-to-xml.cc Fix compilation on FreeBSD 2012-03-05 22:04:40 +01:00
value-to-xml.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
value.hh Add a primop unsafeGetAttrPos to return the position of an attribute 2013-11-18 22:22:35 +01:00