diff options
| author | Juan Marín Noguera <juan@mnpi.eu> | 2024-12-05 13:24:52 +0100 |
|---|---|---|
| committer | Juan Marín Noguera <juan@mnpi.eu> | 2024-12-05 13:24:52 +0100 |
| commit | 84c986dffe7a85c87b80e6d736b3b36e460ff4dd (patch) | |
| tree | 026e817a43a6a55e4fae4c1193e3945eb43e7b53 /README.md | |
| parent | 06b1f2b0f5d84958897d39e85d099e4e8cce4546 (diff) | |
Update instructions to apply to Guile
Also rename `main` to `main.lua` and `main.scm` to `main`.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,16 +1,22 @@ # Advent of code 2024 -These are my solutions for Advent of Code in 2024. This year I'm using Lua as the programming language. To launch the program for a given day, run +These are my solutions for Advent of Code in 2024. This year I'm using Guile +Scheme as the programming language. To launch the program for a given day, run ```sh ./main <<ID>> [<<FILE>>] ``` -where `<<ID>>` is the day number followed by `a` for the first part or `b` for the second part. If the file is not specified, it defaults to the number of the day with two digits and extension `.in`, i.e. `01.in`. One can use the name of a file that doesn't exist, e.g. `-`, to read from standard input. +where `<<ID>>` is the day number followed by `a` for the first part or `b` for +the second part. If the file is not specified, it defaults to the number of the +day with two digits and extension `.in`, i.e. `01.in`. To read from standard +input, use `-` as the file name. Example: ```sh -./main 01b input +./main 05b - ``` +Some of the first days are written in Lua rather than Guile Scheme. To run +them, simply replace `main` with `main.lua`. |
