about summary refs log tree commit diff stats
path: root/lua/chupacabra
diff options
context:
space:
mode:
Diffstat (limited to 'lua/chupacabra')
-rw-r--r--lua/chupacabra/scratch.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/lua/chupacabra/scratch.lua b/lua/chupacabra/scratch.lua
index 4172950..6025888 100644
--- a/lua/chupacabra/scratch.lua
+++ b/lua/chupacabra/scratch.lua
@@ -22,7 +22,11 @@ end
 local function print_stack()
     for i, entry in ipairs(stack) do
         print(i .. "  input: " .. entry.input)
-        print("  output: " .. table_to_string(entry.output))
+        if type(entry.output) == "table" then
+            print("  output: " .. table_to_string(entry.output))
+        else
+            print("  output: " .. tostring(entry.output))
+        end
     end
 end
 
@@ -31,4 +35,6 @@ scratch("[2 4 6] 2 @..")
 scratch("3 : + [1 1 1] [2 3 4] @+ @..")
 scratch("[2 4 6] 2 @..")
 scratch("1 2 3 4 5 6 7 @.. [1 2 3 0 5 6 7] @=")
+scratch("2 3 +")
+scratch("3 : + 6 =")
 print_stack()
revious revision' href='/danisanti/profani-tty/blame/src/profanity.h?id=9f00ef14d24caa128ada66c0cdb7da645901e45d'>^
9f00ef14 ^
02224ea7 ^

9f00ef14 ^
76149e1f ^
bfc9e9a7 ^
28b17238 ^
e45e6c46 ^
4493f555 ^



be2fb1c8 ^

54e591fe ^
181669a8 ^



81f92929 ^
28b17238 ^
5d9c7ffd ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52