summaryrefslogtreecommitdiff
path: root/2023/src/bin/day_15.rs
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-12-02 15:36:28 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-12-02 15:36:28 +0200
commitf2888fbe7271b6cae8f953262b471848bbb3a121 (patch)
treee954a49f5ac9ad62c3b09573507e1a4c92f91751 /2023/src/bin/day_15.rs
parent86d751ae3dbece4952a279e2cbc2314aa6598e20 (diff)
Template out files for the rest of the month
Diffstat (limited to '2023/src/bin/day_15.rs')
-rw-r--r--2023/src/bin/day_15.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/2023/src/bin/day_15.rs b/2023/src/bin/day_15.rs
new file mode 100644
index 0000000..b3a610b
--- /dev/null
+++ b/2023/src/bin/day_15.rs
@@ -0,0 +1,19 @@
+use nom::IResult;
+use std::fs;
+
+fn main() -> Result<(), Box<dyn std::error::Error>> {
+ let input = fs::read_to_string("inputs/day_2.txt")?;
+ let parsed = Example::parser(&input).unwrap().1;
+ dbg!(&parsed);
+
+ Ok(())
+}
+
+#[derive(Debug)]
+struct Example;
+
+impl Example {
+ fn parser(_input: &str) -> IResult<&str, Self> {
+ todo!()
+ }
+}