diff options
author | elioat <hi@eli.li> | 2024-06-09 17:21:31 -0400 |
---|---|---|
committer | elioat <hi@eli.li> | 2024-06-09 17:21:31 -0400 |
commit | 6caa05788b7dd7f59d863e9774b7f61d534cd1fc (patch) | |
tree | 746bba86a36a6cf642a7c01d2b232ab4a7930037 /lua/chupacabra/chupacabra.lua | |
parent | 01327556ef6cb529e99cd56f8bc4d8947d2a622f (diff) | |
download | tour-6caa05788b7dd7f59d863e9774b7f61d534cd1fc.tar.gz |
*
Diffstat (limited to 'lua/chupacabra/chupacabra.lua')
-rw-r--r-- | lua/chupacabra/chupacabra.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/chupacabra/chupacabra.lua b/lua/chupacabra/chupacabra.lua index aedd71e..e64afc3 100644 --- a/lua/chupacabra/chupacabra.lua +++ b/lua/chupacabra/chupacabra.lua @@ -55,6 +55,11 @@ function chupacabra.evaluate(tokens, context) table.remove(stack) elseif token == ":" then table.insert(stack, stack[#stack]) + elseif token == "?" then + local a = table.remove(stack) + local b = table.remove(stack) + table.insert(stack, a) + table.insert(stack, b) elseif token == "@" then local index = table.remove(stack) local array = table.remove(stack) |