A simple parser definition utility in Swift using composable functions for rules