typelevel / typelevel/cats-parse
Using cats-parse with Scala string interpolation
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 245
- Forks
- 51
- Avg merge
- 3h 20m
- Merged PRs (30d)
- 1
Description
How would I best use cats-parse with Scalas string interpolation feature, where the input I am parsing is not just a plain string but also arbitrary values that are interpolated in it?
So how would I best write a parser for something like:
json"{ name: $name, id: $id }"
from https://docs.scala-lang.org/overviews/core/string-interpolation.html#advanced-usage
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Scala string interpolation advanced-usage documentation; the issue identifies no cats-parse files, tests, or entry points. Done means establishing a maintainer-approved usage pattern or a clearly scoped implementation target for interpolated parser input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100