diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2023-12-02 15:36:28 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2023-12-02 15:36:28 +0200 |
commit | f2888fbe7271b6cae8f953262b471848bbb3a121 (patch) | |
tree | e954a49f5ac9ad62c3b09573507e1a4c92f91751 /2023/src/bin/day_7.rs | |
parent | 86d751ae3dbece4952a279e2cbc2314aa6598e20 (diff) |
Template out files for the rest of the month
Diffstat (limited to '2023/src/bin/day_7.rs')
-rw-r--r-- | 2023/src/bin/day_7.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2023/src/bin/day_7.rs b/2023/src/bin/day_7.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_7.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!() + } +} |