Introduction to swift-parsing
mainswift-parsing is a Swift library designed for transforming nebulous data into well-structured data. It focuses on four key pillars:
- Composition: Breaking complex parsing problems into smaller, simpler ones and combining simple parsers into complex ones.
- Performance: Composed parsers are designed to perform as well as highly-tuned, hand-written parsers.
- Generality: Ability to parse any kind of input (e.g.,
String,Substring,UTF8View,Array) into any kind of output. - Ergonomics: A simple, fluent API to describe parsing problems succinctly.