Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
swift-parsing
A library for turning nebulous data into well-structured data, with a focus on composition, performance, generality, and ergonomics.
I found two; this one looking pretty well maintained: https://github.com/bradhowes/swift-math-parser
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.
No idea about parsing and evaluating in the same library, but there’s an excellent parser library from PointFree.
Related posts
- Need some help with JSON Parsing
- Lezer: A Parsing System for CodeMirror, Inspired by Tree-Sitter
- Show HN: Matcheroni, a tiny C++20 header library for building lexers/parsers
- Show HN: Monch, a tasty TypeScript parser-combinators library
- How do I remove the forward reference error in my parser? (20 lines)