Swift Package Index


A parser combinator library written in the Swift programming language.


  • The latest stable release is 4.0.0. Released 8 months ago.
  • The last commit to master was 8 months ago.

Swift Version Compatibility

  • 4.0.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 4.0.0 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

SwiftParsec

SwiftParsec is a Swift port of the Parsec parser combinator library. It allows the creation of sophisticated parsers from a set of simple parsers. It is also easy to extend the available parsers. The parsers are fully integrated into the language, they can be put into arrays, passed as parameters, returned as values, etc. SwiftParsec provides expressiveness, is well documented and simple.

Key Features

  • Reusable combinators
  • Lexical analysis
  • Expression parser
  • Permutation phrases parser
  • Extensive error messages
  • Unicode support

Documentation

See the wiki

License

SwiftParsec is released under the “Simplified BSD License”. See the LICENSE file in the repository.