Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2c30ffed79
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (14 sloc) 0.698 kb
package com.codecommit.gll
import scala.util.matching.Regex
sealed trait Result[+R] {
val tail: LineStream
}
case class Success[+R](value: R, tail: LineStream) extends Result[R]
case class Failure(data: FailureData, tail: LineStream) extends Result[Nothing]
sealed trait FailureData
case class ExpectedLiteral(expect: String, received: String) extends FailureData
case class ExpectedRegex(regex: Regex) extends FailureData
case class UnexpectedEndOfStream(expected: Option[String]) extends FailureData
case class UnexpectedTrailingChars(received: String) extends FailureData
case class UnexpectedChars(received: String) extends FailureData
case object SyntaxError extends FailureData
Jump to Line
Something went wrong with that request. Please try again.