scala-parser-combinators icon indicating copy to clipboard operation
scala-parser-combinators copied to clipboard

simple combinator-based parsing for Scala. formerly part of the Scala standard library, now a separate community-maintained module

Results 28 scala-parser-combinators issues
Sort by recently updated
recently updated
newest added

I've a packrat parser written to handle some tokens. However when running the parser it hangs indefinitely even though all tokens were matched successfully by the parser. However changing the...

I implemented this new interface for Scanners but haven't yet implemented it for RegexParsers; implementing it in the obvious way for RegexParsers would create performance issues (likely making a linear...

Submitted for discussion; needs tests and documentation.

(I wanted to lower the priority of this issue, but somehow wasn't allowed to do so in the bug filing form) A RegexParsers parser should skip whitespaces. It does so...

As discussed in https://github.com/scala/scala-parser-combinators/issues/397 by @martingd, scanners use their `atEnd` predicate instead of reporting `EofCh` or the built-in `Tokens.EOF`: > ### Note about EofCh > First of all, it seems...

* Scala: `3.X` * scala-parser-combinators: `2.1.1` Consider the following motivating example: ```Scala import scala.util.parsing.combinator.Parsers enum Token { case A() case B() case C() } object Parser extends Parsers { override...

I wish to declare concrete class with a type parameter but scala compiler does not allow to do this if it extends both traits RegexParsers and PackratParsers simultaneously. Compilation error...

I'm testing Scala Parser Combinators but for some reason I can't make non-capturing group work. When I run the following, it works the way I want, returning only `003`: ```...

In scala 2.13.5, the match expression will raise inexhaustive warning for following code ```scala // warning: match may not be exhaustive. It would fail on the following inputs: Error(_, _),...

## reproduction steps using Scala 2.12 or 2.13 ```scala object Main { def main(args: Array[String]): Unit = { val RegScala213 = ("\""+"""([^"\x00-\x1F\x7F\\]|\\[\\'"bfnrt]|\\u[a-fA-F0-9]{4})*"""+"\"").r // Scala 2.13 //val RegScala211 = ("\""+"""([^"\p{Cntrl}\\]|\\[\\'"bfnrt]|\\u[a-fA-F0-9]{4})*+"""+"\"").r //...