I can't figure out how to read text with parsec to a stop word, I understand that you can do something like this
paramBlockExpr :: Parser ParamBlock
paramBlockExpr = do
p <- paramExpr
txt <- many1 anyChar
_ <- string "stop_word"
return $ ParamBlock p txt
But then parsec will move the carriage and stop_word is no longer readable, I read something about lookAHead, but I do not understand if it is applicable here
P.S
By the way the example will not work either, anyChar will absorb stop_word
Like this: