summaryrefslogtreecommitdiff
path: root/day4/parse.TXT
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2025-12-17 07:30:19 +0100
committerAndreas Grois <andi@grois.info>2025-12-17 07:30:19 +0100
commitdcebd44260fa67b04d217e778265982393ccc032 (patch)
treeb8eaf3de339d7a389632123c4765c53cce507a44 /day4/parse.TXT
parent7c225da26c5be1c255db34b52548b3af49097b07 (diff)
Day4: Comment programs and export text version.HEADmain
Diffstat (limited to 'day4/parse.TXT')
-rw-r--r--day4/parse.TXT16
1 files changed, 16 insertions, 0 deletions
diff --git a/day4/parse.TXT b/day4/parse.TXT
new file mode 100644
index 0000000..f496de4
--- /dev/null
+++ b/day4/parse.TXT
@@ -0,0 +1,16 @@
+\START92\
+\COMMENT=Parses input to a list of binary numbers
+\NAME=parse
+\FILE=day4.parse.92f
+(numipts,patt)
+Func
+Local result,i
+
+newList(numipts)\->\result
+For i,1,numipts
+ parseln(expr(patt&string(i)))\->\result[i]
+EndFor
+result
+EndFunc
+
+\STOP92\