about summary refs log tree commit diff stats
path: root/lua/chupacabra/chupacabra.lua
diff options
context:
space:
mode:
authorelioat <hi@eli.li>2024-06-09 15:41:19 -0400
committerelioat <hi@eli.li>2024-06-09 15:41:19 -0400
commit79fcbb5f40e91fc74d4d7b1491b8e246ec6a42b5 (patch)
tree08499113a679e782f997dbaaf78a78a68bed6ca6 /lua/chupacabra/chupacabra.lua
parenta461b64cd0996f707914abc7927bb46da8026e46 (diff)
downloadtour-79fcbb5f40e91fc74d4d7b1491b8e246ec6a42b5.tar.gz
*
Diffstat (limited to 'lua/chupacabra/chupacabra.lua')
-rw-r--r--lua/chupacabra/chupacabra.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/chupacabra/chupacabra.lua b/lua/chupacabra/chupacabra.lua
index 9d18b69..4296e19 100644
--- a/lua/chupacabra/chupacabra.lua
+++ b/lua/chupacabra/chupacabra.lua
@@ -23,11 +23,10 @@ end
 function chupacabra.evaluate(tokens, context)
     local stack = {}
 
-    -- FIXME: explore if there is a better way to approach this, so that you don't need to special case the array math
     for _, token in ipairs(tokens) do
         if tonumber(token) then
             table.insert(stack, tonumber(token))
-        elseif token:match("^%b[]$") then -- If the token is an array
+        elseif token:match("^%b[]$") then
             local array = {}
             for number in token:sub(2, -2):gmatch("%S+") do
                 table.insert(array, tonumber(number))
it/themes/original_bright?id=fa3c6779a0cb89b96513206f11b2a5e595f4b8d7'>fa3c6779 ^
a4b4ed71 ^
30b5f112 ^




fa3c6779 ^





30b5f112 ^
71679a31 ^

fa3c6779 ^
30b5f112 ^
fa3c6779 ^
fa3c6779 ^

2f82f50a ^
86c1c388 ^
1a3dc91e ^
fa3c6779 ^

fa3c6779 ^
fbc30231 ^

















cd2458c0 ^

0ae975c2 ^

fa3c6779 ^
b21edfaa ^
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79