aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-04 22:00:26 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-04 22:52:08 -0500
commit681f958f0d9dfbcd1f42753557a1a729c384ca52 (patch)
treef7455cad088becc593707a8890c915b8d63a92b9 /spec
parentd34d752220f645b253c722bd39e479452ed36e41 (diff)
Add •Eval, •Using, and •Fmt to spec
Diffstat (limited to 'spec')
-rw-r--r--spec/system.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/system.md b/spec/system.md
index 827af981..10d643ef 100644
--- a/spec/system.md
+++ b/spec/system.md
@@ -41,11 +41,22 @@ Functions `•FChars`, `•FLines`, and `•FBytes` are all ambivalent. If only
- Lines: BQN strings. The file is decoded as with chars, then split into lines by CR, LR, or CRLF line endings.
- Bytes: Single-byte values, stored as BQN characters from `@` to `@+255`.
+## Execution and scope manipulation
+
+| Name | Summary
+|------------|--------------------------
+| `•BQN` | Evaluate the argument string in an isolated scope
+| `•Eval` | Evaluate the argument string in the current scope
+| `•Using` | Import all values from the argument namespace
+
+The effect of `•Eval` should be the same as if its argument were written as source code in the scope where `•Eval` appears. It can define variables, and modify those in the current scope or a parent.
+
## Input and output
| Name | Summary
|--------|----------------------
| `•Out` | Print argument string
+| `•Fmt` | Format value for printing
## Operation properties