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-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -417,6 +417,9 @@ Commands are executed in sequence. Commands taking an optional module name refer
417
417
418
418
After a module is _registered_ under a string name it is available for importing in other modules.
419
419
420
+
The failure string in assertions exists for documentation purposes.
421
+
The reference interpreter itself checks that the string is a prefix of the actual error message it generates.
422
+
420
423
The script format supports additional syntax for defining modules.
421
424
A module of the form `(module binary <string>*)` is given in binary form and will be decoded from the (concatenation of the) strings.
422
425
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.
@@ -435,14 +438,14 @@ It also supports an "unchecked" mode (flag `-u`), in which module definitions ar
435
438
When running scripts, the interpreter predefines a simple host module named `"spectest"` that has the following module type:
0 commit comments