swift-parsing
A library for turning nebulous data into well-structured data, with a focus on composition, performance, generality, and ergonomics. (by pointfreeco)
Swift-ParserKit
A standalone monadic parser-combinator library (by apotheca)
swift-parsing | Swift-ParserKit | |
---|---|---|
8 | 5 | |
818 | 2 | |
1.7% | - | |
4.0 | 1.8 | |
about 1 month ago | about 1 year ago | |
Swift | Swift | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
swift-parsing
Posts with mentions or reviews of swift-parsing.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-06.
- Swift Ownership Manifesto
-
Does anyone know of a well-maintained Swift libraries that focus specifically on parsing and evaluating mathematical expressions from strings.
No idea about parsing and evaluating in the same library, but there’s an excellent parser library from PointFree.
-
Tour of Parser-Printers: Introduction
Sorry about that, broken links have been fixed in the episode and here's a link to the library: https://github.com/pointfreeco/swift-parsing.
-
Parsing & Formatting Imperial Measurements
If you want to do parsing, I strongly recommend Point-Free's Parsing library!
-
Validating urls in Swift with regex.
Honestly I still have a difficult time understanding Regex’s, and maintaining them can be hard since once small change can completely change how the Regex works. I would instead opt for a real parsing library, like for instance PointFree’s swift-parsing, who’s clear and idiomatic API makes it easy to understand what’s really going on. It’s also very, very performant - almost as performant as making a custom hand-rolled parser.
-
Getting multiple strings and extracting the word within special characters
Personally, I would pull out my parser library and use that (the documentation is lacking, so if you're just starting out it can be hard to figure out what's going on, but you could use Point Free's parser library to do it like so:
-
SwiftUI architecture
I’m currently using the composable architecture. TCA is the result of video series by Point Free that discusses what Apple provides with SwiftUI, in detail, and iterates though the of the evolution of the architecture, to fill in the gaps. Most of the content is available by subscription, but there is free content as well, which includes a four part overview on the architecture itself. I highly recommend subscribing as the detailed walkthrough of building the architecture is extremely useful and helps clarify some of the more complicated aspects of its use.
- Parsing: turn nebulous data into well-structured data, with a focus on composition, performance, & generality
Swift-ParserKit
Posts with mentions or reviews of Swift-ParserKit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-07.
-
Does anyone know of a well-maintained Swift libraries that focus specifically on parsing and evaluating mathematical expressions from strings.
I have a small but well-documented parser-combinator library, and one of the examples is a simple PEMDAS parser, which I'm sure you could extend to include func(arg) -style named function calls.
-
What’s everyone working on this month? (March 2023)
I've been working on a library for parser-combinators!
-
Need some help with JSON Parsing
You can check out the quickstart which will give you an idea of what it's like to actually use parser combinators.
-
[Feedback Request] I'm working on a small parser library and I'm trying to improve my documentation
You can find it here, don't forget to build the documentation (Product > Build Documentation or Ctrl-Shift-Cmd-D)!
What are some alternatives?
When comparing swift-parsing and Swift-ParserKit you can also consider the following projects:
swift-composable-architecture - A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
swift-math-parser - Math expression parser built with Point•Free's swift-parsing package
Recombine
Syntax - Write value-driven parsers quickly in Swift with an intuitive SwiftUI-like DSL
swift-evolution - This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.
swift - The Swift Programming Language