On Fri, Nov 16, 2012 at 12:55 AM, Christopher Howard <christopher.howard@frigidcode.com> wrote:
That is, I'm not parsing a single type of document with a set structure.
Rather, the idea is that I have a list of symbols (characters, numbers,
whatever) and pattern match the front part of the list according to some
(grammer) rule (which itself could be a conjunction or disjunction of
rules) in a set of rules. If the match succeeds, then I consume that
part of the list, and then analyze the remaining list, starting again
with the first rule in my rule set. If the match fails, then I try the
next rule in my rule set.
Backtracking would also be cool (to see what
other results I can get).
Is there a particular Haskell abstraction or system suitable for what I
have described?