From 1ee1d078e2480ddd08d40915bc7a74a8352acff0 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 30 Jul 2021 18:04:08 +0200 Subject: Fatal errors - Makes errors fatal, so that a phase is only reached when all previous phases were error-free - Parsing still recovers and can produce multiple errors - Evaluation fails fast and can thus produce only a single error (except for parse errors due to an import) - The single error that could occur during execution is removed for now - Removes Value::Error variant --- tests/ref/code/array.png | Bin 3396 -> 1971 bytes tests/ref/code/block-invalid.png | Bin 512 -> 0 bytes tests/ref/code/block.png | Bin 3152 -> 1440 bytes tests/ref/code/call-invalid.png | Bin 2975 -> 0 bytes tests/ref/code/call-wide.png | Bin 2686 -> 0 bytes tests/ref/code/call.png | Bin 6150 -> 3722 bytes tests/ref/code/closure.png | Bin 0 -> 657 bytes tests/ref/code/comment.png | Bin 1904 -> 1829 bytes tests/ref/code/dict.png | Bin 1602 -> 884 bytes tests/ref/code/for.png | Bin 4074 -> 2346 bytes tests/ref/code/if.png | Bin 2731 -> 1838 bytes tests/ref/code/import.png | Bin 4279 -> 1891 bytes tests/ref/code/let.png | Bin 2245 -> 1465 bytes tests/ref/code/while.png | Bin 1531 -> 811 bytes 14 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 tests/ref/code/block-invalid.png delete mode 100644 tests/ref/code/call-invalid.png delete mode 100644 tests/ref/code/call-wide.png create mode 100644 tests/ref/code/closure.png (limited to 'tests/ref/code') diff --git a/tests/ref/code/array.png b/tests/ref/code/array.png index b1e20348..c90898c1 100644 Binary files a/tests/ref/code/array.png and b/tests/ref/code/array.png differ diff --git a/tests/ref/code/block-invalid.png b/tests/ref/code/block-invalid.png deleted file mode 100644 index d1e85402..00000000 Binary files a/tests/ref/code/block-invalid.png and /dev/null differ diff --git a/tests/ref/code/block.png b/tests/ref/code/block.png index 3e64d82c..afdd176b 100644 Binary files a/tests/ref/code/block.png and b/tests/ref/code/block.png differ diff --git a/tests/ref/code/call-invalid.png b/tests/ref/code/call-invalid.png deleted file mode 100644 index b2f62ac2..00000000 Binary files a/tests/ref/code/call-invalid.png and /dev/null differ diff --git a/tests/ref/code/call-wide.png b/tests/ref/code/call-wide.png deleted file mode 100644 index 2d5b4ffe..00000000 Binary files a/tests/ref/code/call-wide.png and /dev/null differ diff --git a/tests/ref/code/call.png b/tests/ref/code/call.png index fd2abbd8..1839c5d8 100644 Binary files a/tests/ref/code/call.png and b/tests/ref/code/call.png differ diff --git a/tests/ref/code/closure.png b/tests/ref/code/closure.png new file mode 100644 index 00000000..043d4a11 Binary files /dev/null and b/tests/ref/code/closure.png differ diff --git a/tests/ref/code/comment.png b/tests/ref/code/comment.png index bb8bf69a..e349b384 100644 Binary files a/tests/ref/code/comment.png and b/tests/ref/code/comment.png differ diff --git a/tests/ref/code/dict.png b/tests/ref/code/dict.png index 730ff6d8..7b7f4d8c 100644 Binary files a/tests/ref/code/dict.png and b/tests/ref/code/dict.png differ diff --git a/tests/ref/code/for.png b/tests/ref/code/for.png index de1f3cab..7178b594 100644 Binary files a/tests/ref/code/for.png and b/tests/ref/code/for.png differ diff --git a/tests/ref/code/if.png b/tests/ref/code/if.png index 48152e23..7b54203a 100644 Binary files a/tests/ref/code/if.png and b/tests/ref/code/if.png differ diff --git a/tests/ref/code/import.png b/tests/ref/code/import.png index 75d4adce..00595f8a 100644 Binary files a/tests/ref/code/import.png and b/tests/ref/code/import.png differ diff --git a/tests/ref/code/let.png b/tests/ref/code/let.png index e9c00064..9805b8ee 100644 Binary files a/tests/ref/code/let.png and b/tests/ref/code/let.png differ diff --git a/tests/ref/code/while.png b/tests/ref/code/while.png index a772fd59..0956fe45 100644 Binary files a/tests/ref/code/while.png and b/tests/ref/code/while.png differ -- cgit v1.2.3