snix/tvix/eval/src/value
sterni 9b8ba915c8 fix(tvix/eval): ' is allowed in nonfirst position in Nix identifiers
With this is_valid_nix_identifier should line up with the upstream lexer
definition:

    ID          [a-zA-Z\_][a-zA-Z0-9\_\'\-]*

While we're working on this, add a simple test checking the various
formatting rules. Interestingly, it would not be suitable as an identity
test, since you have to write

    { "assert" = null; }

in order to avoid an evaluation error, but C++ Nix is happy to print
this as

    { assert = null; }

– maybe should be considered to be a bug.

Change-Id: I0a4e1ccb5033a80f3767fb8d1c4bba08d303c5d8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7744
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2023-01-04 12:36:28 +00:00
..
attrs refactor(tvix/eval): persistent, memory-sharing OrdMap for NixAttrs 2022-12-29 17:44:56 +00:00
arbitrary.rs refactor(tvix/eval): Encapsulate Value::Attrs construction 2022-10-08 19:02:25 +00:00
attrs.rs refactor(tvix/eval): remove extra Rc<..> around Value::Attrs 2022-12-29 17:44:56 +00:00
builtin.rs feat(tvix/eval): Add docstrings as documentation for builtins 2022-11-08 13:42:37 +00:00
function.rs fix(tvix/eval): fix current clippy warnings 2022-12-25 18:25:06 +00:00
list.rs refactor(tvix/eval): persistent, memory-sharing OrdMap for NixAttrs 2022-12-29 17:44:56 +00:00
mod.rs refactor(tvix/eval): remove extra Rc<..> around Value::Attrs 2022-12-29 17:44:56 +00:00
path.rs refactor(tvix/eval): factor out all calls to canon_path 2022-10-13 09:07:47 +00:00
string.rs fix(tvix/eval): ' is allowed in nonfirst position in Nix identifiers 2023-01-04 12:36:28 +00:00
thunk.rs fix(tvix/eval): fix current clippy warnings 2022-12-25 18:25:06 +00:00