summaryrefslogtreecommitdiffstats
path: root/2024/gforth
diff options
context:
space:
mode:
authorAleteoryx <alyx@aleteoryx.me>2024-12-09 20:43:17 -0500
committerAleteoryx <alyx@aleteoryx.me>2024-12-09 20:43:17 -0500
commit3cb8f4912dac55f840089940374f92e7c618c3c0 (patch)
tree444f9ddc3859f399c9de5c6f81c633ec94070d94 /2024/gforth
parent2807186474128e9d0fb52149630dc675b169cbfa (diff)
downloadadventofcode-3cb8f4912dac55f840089940374f92e7c618c3c0.tar.gz
adventofcode-3cb8f4912dac55f840089940374f92e7c618c3c0.tar.bz2
adventofcode-3cb8f4912dac55f840089940374f92e7c618c3c0.zip
gforth basics, maybe
Diffstat (limited to '2024/gforth')
-rw-r--r--2024/gforth/lib.fs6
1 files changed, 6 insertions, 0 deletions
diff --git a/2024/gforth/lib.fs b/2024/gforth/lib.fs
new file mode 100644
index 0000000..24cf68e
--- /dev/null
+++ b/2024/gforth/lib.fs
@@ -0,0 +1,6 @@
+: start-header ( n -- )
+ ." Advent of Code 2024 day " dup . ." Solution" cr
+ ." <https://adventofcode.com/2024/" dup 1 .r ." >" cr cr ;
+
+: start-lines ( n -- lines )
+ dup start-header