-
I need a hint. I am trying to adopt examples to recent changes.
I guess
```
import org.parboiled2.ParseError.Strategy.Either
import org.parboiled2.support.Unpack
```
should be enough to use previo…
-
If (by accident?) do `import Rule._` in scope of rule run then actually `org.parboiled2.Rule.Runnable[$l]($parser.$rule)$` be instantiated and applied. I.e.:
``` Scala
// ...
object ABCParser {
imp…
-
To verify the correctness of _parboiled2_ actually the previous version could be used: the goal is to verify if _parboiled1_ and _parboiled2_ produce same result (if produce at all) for same input gra…
-
When parsing `s: String`, using `parseAll(p, new java.io.StringReader(s))` is much, much more efficient than using just `parseAll(p, s)` - difference in runtime's order of growth is stunning.
I've en…
-
``` scala
import org.parboiled2._
class TestParser(val input: ParserInput) extends Parser {
def simpleRule = rule {str("foo") ~ push("Foo")}
def multiFoo = rule {capture(zeroOrMore("foo"))}
def…
ghost updated
10 years ago
-
In updating to 2.0-M2 from 2.0-M1, I started seeing this error:
```
[error] YParser.scala:217: value toLowerCase is not a member of org.parboiled2.Rule[shapeless.HNil,shapeless.HNil]
[error] def Ya…
-
```
> aabbcc
[S] 'aabbcc'
[OneOrMore] 'aa'
['a'] 'a'
['a'] 'a'
[B] 'bbcc'
['b'] 'b'
[Optional] 'bc'
[B] 'bc'
['b'] 'b'
[Optional]
['c'] 'c'
['c'] …
-
The project could learn a lot about what needs to be improved, what are potential bugs, and what needs to be tested, if you add a couple maven plugins to the pom.
Maven plugins for PMD, CPD, cobertur…