summaryrefslogtreecommitdiff
path: root/doc.txt
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-08-08 14:44:48 +0100
committerubq323 <ubq323@ubq323.website>2024-08-08 14:49:05 +0100
commitd046c7d20fd283c90495d3af4bb53d1cfb2a0812 (patch)
treea764b20d45135101b179a4fbdc122ca0c76bd6b6 /doc.txt
parenta4e8599e8d0fde881cd4e6e3031e5b52550e878e (diff)
misc
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.