summaryrefslogtreecommitdiff
path: root/doc.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc.txt')
-rw-r--r--doc.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc.txt b/doc.txt
index d65c981..0c84bcc 100644
--- a/doc.txt
+++ b/doc.txt
@@ -40,17 +40,20 @@
(clock): clock(3)
(say x): print representation of x, followed by newline
(write x): print representation of x, with no newline
+ (writebytes a): a is a list of nums in [0,255]
(arr): create new empty array
- (append a x): appends to array a, returns a
- (len a): get length of array a
+ (append! a x): appends to array a in place, returns a
+ (# a): get length of array a
(, ...): pend. concatenates arrays, promotes non-arrays to arrays
(, [1 2 3] 4) -> [1 2 3 4]
(, [1 2 3] [4 5]) -> [1 2 3 4 5]
(, 10 20) -> [10 20] etc
+ (s, ...): spend. concatenates strings
# cmdline args
bth [-Dl] [-Dt] filenames...
-Dl: print bytecode listing before execution
-Dt: trace each executed bytecode instruction
+ -Ds: dump read s-expressions
filename "-" can be provided to mean stdin.