Created
April 30, 2014 22:17
-
-
Save patrickt/28f9d8b9be09d5bf0fc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parsePointers :: CParser (Endo (Term SpecifierSig)) | |
parsePointers = mconcat <$> some pointer where | |
pointer = do | |
ptr <- endo C.iPointer "*" | |
quals <- many parseModifier | |
let ordered = reverse quals ++ [ptr] | |
return $ getDual $ mconcat $ Dual <$> ordered |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment