My tests with the Nom Crate
-
exp1 - parse format NN____NN
-
exp2 - parse format TEXT: NN: NN(repeat)| NN(repeat)
-
exp3 - parse format
Button A: X+NN, Y+NN
Button B: X+NN, Y+NN
Prize: X=NN, Y=NN
line break
repeat
Many thanx to Chris Biscardi's Advent of Code Github where I've borrowed heavily for these soultions