Simple parser definition utility in Swift using composable functions