Recursive ascent parser: Difference between revisions

Content deleted Content added
Example: Use syntax highlighting for Scala source example
Example: Removed stream syntax trick (redundant as of Scala 2.8)
Line 51:
def this(c: Char) = this(c.toString)
}
object #:: {
def unapply[A](str: Stream[A]) = str match {
case Stream.cons(hd, tail) => Some((hd, tail))
case Stream() => None
}
}