A toy parser combinator implementation in Swift