snix/tvix/eval/src
Griffin Smith d431aa7743 fix(tvix/eval): Emit errors for invalid integers
Invalid integers (eg integers that're too long) end up as error returns
on the `.value()` returned from the literal in the AST - previously we'd
unwrap this error, causing it to panic the compiler, but now we've got a
nice error variant for it (which just unwraps the underlying
std::num::ParseIntError).

Change-Id: I50c3c5ba89407d86659e20d8991b9658415f39a0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6635
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
2022-09-18 16:40:14 +00:00
..
builtins feat(tvix_eval): Support builtins.compareVersions 2022-09-17 14:48:58 +00:00
compiler fix(tvix/eval): Emit errors for invalid integers 2022-09-18 16:40:14 +00:00
tests test(tvix/eval): add a test for lazy evaluation of with namespace 2022-09-17 18:58:42 +00:00
value test(tvix/eval): Add proptests covering trait impls for String 2022-09-17 19:51:16 +00:00
chunk.rs feat(tvix/eval): add Chunk::pop_op method 2022-09-11 12:26:23 +00:00
errors.rs fix(tvix/eval): Emit errors for invalid integers 2022-09-18 16:40:14 +00:00
eval.rs feat(tvix/eval): implement initial fancy display for warnings 2022-09-13 11:12:29 +00:00
lib.rs test(tvix/eval): Add proptests covering trait impls for String 2022-09-17 19:51:16 +00:00
main.rs fix(tvix/eval): always add history entries in REPL 2022-09-10 21:57:13 +00:00
observer.rs refactor(tvix/eval): use CodeIdx wrapper for instruction pointer 2022-09-13 14:41:57 +00:00
opcode.rs refactor(tvix/eval): rename OpAttrsIsSet -> OpHasAttr 2022-09-17 18:58:42 +00:00
properties.rs test(tvix/eval): Add proptests covering trait impls for String 2022-09-17 19:51:16 +00:00
upvalues.rs refactor(tvix/eval): capture entire with_stack in upvalues 2022-09-11 12:26:23 +00:00
vm.rs refactor(tvix/eval): rename OpAttrsIsSet -> OpHasAttr 2022-09-17 18:58:42 +00:00
warnings.rs feat(tvix/eval): implement legacy let syntax 2022-09-16 18:13:26 +00:00