diff options
Diffstat (limited to '2023')
-rw-r--r-- | 2023/src/bin/day_10.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_11.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_12.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_13.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_14.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_15.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_16.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_17.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_18.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_19.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_2.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_20.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_21.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_22.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_23.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_24.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_25.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_3.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_4.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_5.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_6.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_7.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_8.rs | 19 | ||||
-rw-r--r-- | 2023/src/bin/day_9.rs | 19 |
24 files changed, 456 insertions, 0 deletions
diff --git a/2023/src/bin/day_10.rs b/2023/src/bin/day_10.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_10.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!() + } +} diff --git a/2023/src/bin/day_11.rs b/2023/src/bin/day_11.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_11.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!() + } +} diff --git a/2023/src/bin/day_12.rs b/2023/src/bin/day_12.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_12.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!() + } +} diff --git a/2023/src/bin/day_13.rs b/2023/src/bin/day_13.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_13.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!() + } +} diff --git a/2023/src/bin/day_14.rs b/2023/src/bin/day_14.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_14.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!() + } +} 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!() + } +} diff --git a/2023/src/bin/day_16.rs b/2023/src/bin/day_16.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_16.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!() + } +} diff --git a/2023/src/bin/day_17.rs b/2023/src/bin/day_17.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_17.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!() + } +} diff --git a/2023/src/bin/day_18.rs b/2023/src/bin/day_18.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_18.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!() + } +} diff --git a/2023/src/bin/day_19.rs b/2023/src/bin/day_19.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_19.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!() + } +} diff --git a/2023/src/bin/day_2.rs b/2023/src/bin/day_2.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_2.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!() + } +} diff --git a/2023/src/bin/day_20.rs b/2023/src/bin/day_20.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_20.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!() + } +} diff --git a/2023/src/bin/day_21.rs b/2023/src/bin/day_21.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_21.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!() + } +} diff --git a/2023/src/bin/day_22.rs b/2023/src/bin/day_22.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_22.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!() + } +} diff --git a/2023/src/bin/day_23.rs b/2023/src/bin/day_23.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_23.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!() + } +} diff --git a/2023/src/bin/day_24.rs b/2023/src/bin/day_24.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_24.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!() + } +} diff --git a/2023/src/bin/day_25.rs b/2023/src/bin/day_25.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_25.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!() + } +} diff --git a/2023/src/bin/day_3.rs b/2023/src/bin/day_3.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_3.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!() + } +} diff --git a/2023/src/bin/day_4.rs b/2023/src/bin/day_4.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_4.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!() + } +} diff --git a/2023/src/bin/day_5.rs b/2023/src/bin/day_5.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_5.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!() + } +} 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<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!() + } +} 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!() + } +} diff --git a/2023/src/bin/day_8.rs b/2023/src/bin/day_8.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_8.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!() + } +} diff --git a/2023/src/bin/day_9.rs b/2023/src/bin/day_9.rs new file mode 100644 index 0000000..b3a610b --- /dev/null +++ b/2023/src/bin/day_9.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!() + } +} |