I want to convert my current code written using Scala Parser Combinator(Packrat Parser) to Parboiled2 Parser.
But Parboiled2 Parser is not allowing me to use any kind of Regex while writing Rules.
For example:
Consider following sample code snippet written using Scala Parser Combinator:
def sampleGrammarRule(): PackratParser[String] = "(?i)hello".r ~ "(?i)world".r ^^ {
case str1 ~ str2 => {
//...
}
}
Thanks in advance.
Sanjyot