elvish/eval
Qi Xiao ae3f6279af Change the syntax of "use".
Previsouly, use accepts a module name a🅱️x:y, and imports the file
a/b/x/y.elv (under ~/.elvish/lib) as a🅱️x:y. This makes it clumsy to import
modules in deeply nested directories, because the resulting module name is
very long.

Now it is possible to omit some leading path components in the module name by
specifying them using slashes instead of colons. For example, "use a/b/c/x:y"
imports the same file a/b/c/x/y.elv, but as x:y. In other words, the part
before the last slash is used to derive the filename, but not used in the
module name.

The "use" special form used to accept a second argument for an alternative
filename. That argument has been removed to standardize the way the module
file is found. Relavite imports will be introduced some time in future to
compensate some of the lost functionality.
2017-09-20 11:46:35 +01:00
..
re eval: Use a more efficient implementation for Struct. 2017-09-01 01:07:35 +02:00
args_walker.go Use understore in filenames. 2017-06-26 19:47:10 +02:00
boilerplate.go Parse options in lambda signature. 2017-08-05 21:50:44 +02:00
boilerplate.py Replace dash with underline in file names(fixup) (#369) 2017-06-27 01:46:27 +01:00
bool.go Add Hash to Value interface. 2017-08-30 20:52:27 +02:00
builtin_fn.go Add -is-dir. 2017-09-19 00:42:38 +01:00
builtin_namespace.go EnvPathList -> EnvList; simplify implementation. 2017-09-01 01:07:35 +02:00
builtin_special.go Change the syntax of "use". 2017-09-20 11:46:35 +01:00
chdir.go Update $E:PATH when changing directory. 2017-06-24 17:52:53 +02:00
closure.go Use persistent hashmap to implement map. 2017-09-01 01:07:20 +02:00
compilation_error.go Use understore in filenames. 2017-06-26 19:47:10 +02:00
compile_lvalue.go Reimplement element assignment using Assoc. 2017-09-01 01:07:37 +02:00
compile_op.go eval: Replace "muster" with "unwrapper". 2017-09-05 01:05:44 +02:00
compile_value.go eval: Use Unwrapper in more places. 2017-09-05 00:15:06 +01:00
compiler.go eval: Make builtin namespace a field of the Evaler. 2017-06-24 18:08:47 +02:00
daemon_namespace.go Use understore in filenames. 2017-06-26 19:47:10 +02:00
editor.go Editor.notify -> .Notify 2016-09-11 19:46:49 +02:00
embedded_modules.go Fix readline-binding. 2017-09-17 23:08:15 +01:00
env_list.go EnvPathList -> EnvList; simplify implementation. 2017-09-01 01:07:35 +02:00
eval_test.go Add tests for the "assoc" builtin. 2017-09-16 17:50:53 +01:00
eval.go EnvPathList -> EnvList; simplify implementation. 2017-09-01 01:07:35 +02:00
exception.go Add Hash to Value interface. 2017-08-30 20:52:27 +02:00
external_cmd.go Add Hash to Value interface. 2017-08-30 20:52:27 +02:00
file.go Add Hash to Value interface. 2017-08-30 20:52:27 +02:00
gen-embedded-modules Remove embedded: from embedded namespace. Remove "acme:". 2017-07-03 21:33:43 +01:00
glob.go Add Hash to Value interface. 2017-08-30 20:52:27 +02:00
interrupts.go Check for interrupts before each pipeline and after each chunk. 2017-07-08 20:58:07 +01:00
list_test.go Fix list slice index check (#359) 2017-06-19 12:36:29 +02:00
list.go Add Hash to Value interface. 2017-08-30 20:52:27 +02:00
listlike.go Add Hash to Value interface. 2017-08-30 20:52:27 +02:00
map.go Add a "dissoc" builtin. 2017-09-16 17:48:53 +01:00
maplike.go Implement Assoc for several types. 2017-09-01 01:07:34 +02:00
must.go eval: Replace "muster" with "unwrapper". 2017-09-05 01:05:44 +02:00
narrow.elv Updates and fixes to narrow.elv (#465) 2017-08-13 22:23:33 +01:00
pipe.go Add Hash to Value interface. 2017-08-30 20:52:27 +02:00
port.go Add a blackhole; renames. 2016-10-13 23:44:28 +08:00
pwd.go eval: Make builtin namespace a field of the Evaler. 2017-06-24 18:08:47 +02:00
rat.go Add Hash to Value interface. 2017-08-30 20:52:27 +02:00
readline-binding.elv Fix readline-binding. 2017-09-17 23:08:15 +01:00
search.go util.AllExecutables -> EachExecutable; callback instead of channel. 2017-02-09 15:57:16 -08:00
shared.go Remove shell and web's dependency on store. 2017-06-20 02:35:11 +02:00
string.go Implement Assoc for several types. 2017-09-01 01:07:34 +02:00
struct.go eval: Use a more efficient implementation for Struct. 2017-09-01 01:07:35 +02:00
unwrap.go eval: Use Unwrapper in more places. 2017-09-05 00:15:06 +01:00
util.go splice -> explode 2016-10-13 14:12:14 +08:00
validator.go eval.Fn -> Callable, eval.Iterator -> Iterable 2017-02-18 04:45:40 +00:00
value_test.go Use persistent hashmap to implement map. 2017-09-01 01:07:20 +02:00
value.go Add a "dissoc" builtin. 2017-09-16 17:48:53 +01:00
variable_test.go eval: Test variable.go. 2017-06-01 00:12:05 +01:00
variable.go Reimplement element assignment using Assoc. 2017-09-01 01:07:37 +02:00