Exception when trying to execute Scala Parser Combinator

Could you kindly help me find the error in this Scala Code please ?

When executing the parser, the subsequent exceptions are outputted :

Exception in thread “main” java.lang.StackOverflowError
at scala.util.parsing.combinator.Parsers$$anon$1.apply(Parsers.scala:215)
at scala.util.parsing.combinator.Parsers$Parser.$anonfun$append$1(Parsers.scala:247)
at scala.util.parsing.combinator.Parsers$$anon$1.apply(Parsers.scala:215)
at scala.util.parsing.combinator.Parsers$Parser.$anonfun$append$1(Parsers.scala:247)
at scala.util.parsing.combinator.Parsers$$anon$1.apply(Parsers.scala:215)
at scala.util.parsing.combinator.Parsers$Parser.$anonfun$append$1(Parsers.scala:247)
at scala.util.parsing.combinator.Parsers$$anon$1.apply(Parsers.scala:215)
at scala.util.parsing.combinator.Parsers$Parser.$anonfun$append$1(Parsers.scala:247)
at scala.util.parsing.combinator.Parsers$$anon$1.apply(Parsers.scala:215)
at scala.util.parsing.combinator.Parsers$Parser.$anonfun$append$1(Parsers.scala:247)

Thanks a lot and good day :slight_smile:

Why did you start a new topic? Just provide all the information in the original one please: Scala Parser combinator - How to call from main class

If you want help, you should make it easy for us to read your code and reproduce the error. This is anything but that…