News for hackers. Stuff that matters.
Re:Parser combinator library in C by evincarofautumn on Tuesday August 07, 2012 @01:44PM (#4351227)
Back to Parsec using applicative style, and parsing the same thing as the original.

    parseAddress = Address <$> hexDigits <*> (dash *> hexDigits)
      where
        hexDigits = read . ("0x" ++) <$> many1 hexDigit
        dash = char '-'

There are no comments on this comment yet.