elm/parserchompIf and chompWhileParser.oneOfelm-explorations/benchmarkParser.succeedIndications that you might be better off with parser
elm/parserStep type (Loop and Done)elm-test!There's likely a specification doc if you're parsing a language or formal syntax
Look at examples of parser projects
dillonkearns/elm-markdownelm-in-elm parsermdgriffith/elm-markup - good reference for parsing, fault-tolerant parsing, and giving nice error messagesLook at elm/parser docs and resources