Our great sponsors
-
adventofcode
Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala (by sim642)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
However, during day 16 I've kind of hit a wall and can't seem to find a nice way to parse the input. Unlike in the nom example, take_till seems to only be able to handle functions on bytes, not characters. Additionally, I didn't find a way to use some sort of consuming take_until, which results in a pair(take_until(str), tag(str)) combination. Is there any better way to parse this input?
During this year's Advent of Code I'm trying to improve my Rust skills, especially parsing using nom.