scala / scala/scala-parser-combinators

Case insensitive regexs in parser combinators

Open
#325 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
679
Forks
131
Avg merge
8h 25m
Merged PRs (30d)
3

Description

Hi,

The scala.util.parsing.combinator library should provide a way of turning on case insensitive matches; having to prefix every string with a (?i) isn't ideal. E.g., """(?iu)\|H""".r, just ends up cluttering up the code.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the scala.util.parsing.combinator library and inspect how regex and string matches are represented, using the issue's (?iu) regex example as the behavioral reference. Determine an API for enabling case-insensitive matching without repeating inline flags, and consider how completion would be verified across parser combinators.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.