snix/tvix/eval/src
Vincent Ambo f6de4434c3 feat(tvix/eval): allow ignoring locals by prefixing with _
This is a common idiom in both Nix and other languages when a local is
declared without actually being used.

Since Tvix warns for unused locals, having this available is useful
and can be included in the final error message as a suggestion if an
unused variable is intentional.

Change-Id: Ia85f704ba183499a3bae657c58166e2e29f9bde5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6320
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
2022-09-06 07:45:43 +00:00
..
builtins fix(tvix/eval): address all current clippy lints 2022-09-03 00:47:58 +00:00
compiler feat(tvix/eval): allow ignoring locals by prefixing with _ 2022-09-06 07:45:43 +00:00
tests fix(tvix/eval): correctly resolve dynamic upvalues one scope up 2022-09-06 07:29:25 +00:00
value refactor(tvix/eval): encapsulate internal mutability within Closure 2022-09-06 07:29:25 +00:00
chunk.rs refactor(tvix/eval): return a lambda from the compiler 2022-09-01 21:56:17 +00:00
disassembler.rs feat(tvix/eval): implement chunk disassembler output 2022-08-30 16:53:40 +00:00
errors.rs feat(tvix/eval): detect illegally shadowed variables 2022-09-04 17:40:10 +00:00
eval.rs chore(tvix/eval): print node representation for compiler errors 2022-09-03 21:55:04 +00:00
lib.rs feat(tvix/eval): introduce mechanism for defining builtins 2022-09-02 12:59:23 +00:00
main.rs refactor(tvix/eval): explicitly discard uninteresting results 2022-09-03 13:19:48 +00:00
opcode.rs feat(tvix/eval): implement upvalue resolution in with scopes 2022-09-04 17:40:10 +00:00
vm.rs fix(tvix/eval): account for stack offset when pushing a with scope 2022-09-06 07:29:25 +00:00
warnings.rs feat(tvix/eval): emit warnings when globals are being shadowed 2022-09-02 12:59:23 +00:00