Rust

Day03 Tokens, Enums and Docstrings

The Day 03 challenge involves the calculating whether a character symbol is adjacent to a part number in a two dimensional map, such as:

467..114..
...*......
..35..633.
......#...
617*......
.....+.58.
..592.....
......755.
...$.*....
.664.598..

and then doing things with the part numbers.

Day02 Copilot and Vanilla Parsing

After refreshing my knowledge of the rust parsing library ’nom’ with the day01 challenge, I was keen to do the second challenge without, simply using the standard library’s string manipulation and default parsing for this simpler parsing problem.