You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: interpreter/README.md
+9-6
Original file line number
Diff line number
Diff line change
@@ -487,6 +487,9 @@ Commands are executed in sequence. Commands taking an optional module name refer
487
487
488
488
After a module is _registered_ under a string name it is available for importing in other modules.
489
489
490
+
The failure string in assertions exists for documentation purposes.
491
+
The reference interpreter itself checks that the string is a prefix of the actual error message it generates.
492
+
490
493
The script format supports additional syntax for defining modules.
491
494
A module of the form `(module binary <string>*)` is given in binary form and will be decoded from the (concatenation of the) strings.
492
495
A module of the form `(module quote <string>*)` is given in textual form and will be parsed from the (concatenation of the) strings. In both cases, decoding/parsing happens when the command is executed, not when the script is parsed, so that meta commands like `assert_malformed` can be used to check expected errors.
@@ -511,14 +514,14 @@ In that mode, execution may fail with a "crash" error message.
511
514
When running scripts, the interpreter predefines a simple host module named `"spectest"` that has the following module type:
0 commit comments