I am writing a parser in Scala, part of the code is as follow :

 import scala.util.parsing.combinator.syntactical._
 object ExprParser extends JavaTokenParsers {
     lexical.delimiters ++= List("+","-","*","/", "^","(",")",",")
    ...// rest of the code
 }

It gives me the following error:

 object delimiters is not a member of package scala.util.parsing.combinator.lexical

I have checked many resources and couldn't find the source of the problem.

0

There are 0 answers