summaryrefslogtreecommitdiff
path: root/decimal.lua
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-11-02 03:27:03 +0100
committerAki <please@ignore.pl>2024-11-02 03:27:03 +0100
commit1a2c8b663ed89b4d4a75463e28260a7c4955ecb1 (patch)
tree1197fd5279771e8aa8fa3f7b20f8d96be59fb8a8 /decimal.lua
parentf87fb2cb7b044a73284c75dfcd06f25e068df8e1 (diff)
downloadnoita-eyes-1a2c8b663ed89b4d4a75463e28260a7c4955ecb1.zip
noita-eyes-1a2c8b663ed89b4d4a75463e28260a7c4955ecb1.tar.gz
noita-eyes-1a2c8b663ed89b4d4a75463e28260a7c4955ecb1.tar.bz2
Cleaned up and added common reading scripts
Diffstat (limited to 'decimal.lua')
-rwxr-xr-xdecimal.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/decimal.lua b/decimal.lua
new file mode 100755
index 0000000..6f32e5d
--- /dev/null
+++ b/decimal.lua
@@ -0,0 +1,11 @@
+#!/usr/bin/env lua
+local eyes = require "eyes"
+local reading = require "reading"
+for _, message in ipairs(eyes) do
+ local start, value = reading.next_value(message)
+ io.write(value)
+ for _, value in reading.values(message, start) do
+ io.write(",", value)
+ end
+ print()
+end