snix/tvix/eval/src
Vincent Ambo a00e4730a5 feat(tvix/eval): implement assert operator
This implements `assert`, which evaluates an expression and aborts
evaluation if the value is not `true`.

At this point we should introduce eval-failed-* tests; probably
asserting against some representation of the error enum?

Change-Id: If54c8f616d89b829c1860a4835dde60a2cd70d7a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6230
Reviewed-by: grfn <grfn@gws.fyi>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
2022-09-01 17:41:22 +00:00
..
tests refactor(tvix/eval): use pretty_assertions for tests 2022-09-01 12:50:17 +00:00
value feat(tvix/eval): add Value::as_attrs method 2022-08-31 22:26:11 +00:00
chunk.rs feat(tvix/eval): implement chunk disassembler output 2022-08-30 16:53:40 +00:00
compiler.rs feat(tvix/eval): implement assert operator 2022-09-01 17:41:22 +00:00
disassembler.rs feat(tvix/eval): implement chunk disassembler output 2022-08-30 16:53:40 +00:00
errors.rs feat(tvix/eval): implement assert operator 2022-09-01 17:41:22 +00:00
eval.rs chore(tvix/eval): return parse errors out of eval::interpret 2022-08-31 22:42:48 +00:00
lib.rs feat(tvix/eval): implement optional runtime tracing 2022-08-30 16:53:40 +00:00
main.rs fix(tvix/eval): gently attempt to create state dir 2022-08-31 22:10:40 +00:00
opcode.rs feat(tvix/eval): implement assert operator 2022-09-01 17:41:22 +00:00
vm.rs feat(tvix/eval): implement assert operator 2022-09-01 17:41:22 +00:00
warnings.rs docs(tvix/eval): Use correct syntax for module doc comments 2022-08-30 17:13:27 +00:00