From f2888fbe7271b6cae8f953262b471848bbb3a121 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Sat, 2 Dec 2023 15:36:28 +0200 Subject: Template out files for the rest of the month --- 2023/src/bin/day_6.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 2023/src/bin/day_6.rs (limited to '2023/src/bin/day_6.rs') diff --git a/2023/src/bin/day_6.rs b/2023/src/bin/day_6.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_6.rs @@ -0,0 +1,19 @@ +use nom::IResult; +use std::fs; + +fn main() -> Result<(), Box> { + 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!() + } +} -- cgit v1.2.3