Scala parser combinator runs out of memory
- by user3217013
I wrote the following parser in Scala using the parser combinators:
import scala.util.parsing.combinator._
import scala.collection.Map
import scala.io.StdIn
object Keywords {
val Define = "define"
val True = "true"
val False = "false"
val If = "if"
val Then = "then"
val Else = "else"
val Return = "return"
val…