Copyright | (c) Eric Mertens 2017 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
https://adventofcode.com/2017/day/9
Day 9 poses a problem of parsing a nested bracket structure.
Documentation
Parse the group string format as defined in Day 9. Parse result is a vector containing the group score and garbage character count.
Parse a angle-bracket bracketed region of characters and return the
number of non-ignored, contained characters. Characters including and
following a !
are ignored inside garbgae.