nushell/crates/nu-protocol
Jakub Žádník 77c520e10b Make predeclarations scoped; Add hiding tests
In some rare cases, the global predeclarations would clash, for example:

  > module spam { export def foo [] { "foo" } }; def foo [] { "bar" }

In the example, the `foo [] { "bar" }` would get predeclared first, then
the predeclaration would be overwritten and consumed by `foo [] {"foo"}`
inside the module, then when parsing the actual `foo [] { "bar" }`, it
would not find its predeclaration.
2021-10-10 14:31:13 +03:00
..
src Make predeclarations scoped; Add hiding tests 2021-10-10 14:31:13 +03:00
tests Allow rest vars to have a custom name 2021-09-07 15:37:02 +12:00
Cargo.toml Add unit parsing and eval support 2021-10-05 15:27:39 +13:00
README.md Add nu-protocol 2021-09-02 13:29:43 +12:00

nu-protocol

The nu-protocol crate holds the definitions of structs/traits that are used throughout Nushell. This gives us one way to expose them to many other crates, as well as make these definitions available to each other, without causing mutually recursive dependencies.