I'd like to create a program that parses http requests and responses. I already have created its ADT following the specification here, which was pretty easy given that every message follows the same structure. ADTs in Kotlin.
I've looked into some parsing libraries like better-parse and jparsec, but they seem overkill for what I'm trying to accomplish; and I might be wrong but I don't think that tokenizing the whole input regardless of the context is the most appropriate way of doing so.
So my questions are: Is there a different kind of parser more appropriate for my task? Do those have a name? Or should I try to implement it myself?