From 1a2c8b663ed89b4d4a75463e28260a7c4955ecb1 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Nov 2024 03:27:03 +0100 Subject: Cleaned up and added common reading scripts --- decimal.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 decimal.lua (limited to 'decimal.lua') 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 -- cgit v1.1