Class

com.github.kmizu.scomb

SCombinator

Related Doc: package scomb

Permalink

abstract class SCombinator[R] extends AnyRef

Self Type
SCombinator[R]
Source
SCombinator.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SCombinator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SCombinator()

    Permalink

Type Members

  1. case class Error(message: String, index: Int) extends ParseNonSuccess with Product with Serializable

    Permalink

    A data constructor in the case parser failed.

    A data constructor in the case parser failed. It must not be recovered.

    message

    the error message

    index

    the next index

  2. case class Failure(message: String, index: Int) extends ParseNonSuccess with Product with Serializable

    Permalink

    A data constructor in the case parser failed.

    A data constructor in the case parser failed. It can be recovered by | operator

    message

    the error message

    index

    the next index

  3. type P[+T] = Parser[T]

    Permalink

    An alias of Parser[T].

  4. sealed abstract class ParseNonSuccess extends ParseResult[Nothing]

    Permalink

    An ADT that represent the parse result in the case that the parser failed.

  5. sealed abstract class ParseResult[+T] extends AnyRef

    Permalink

    An ADT that represent the parse result.

    An ADT that represent the parse result.

    T

    the type of value

  6. abstract class Parser[+T] extends (Int) ⇒ ParseResult[T]

    Permalink

    A Parser is used to parse the input from the outer class instances.

    A Parser is used to parse the input from the outer class instances. It returns the result of type T as the ParseResult.

    T

    the result type

  7. case class Success[+T](semanticValue: T, index: Int) extends ParseResult[T] with Product with Serializable

    Permalink

    A data constructor in the case parser succeed.

    A data constructor in the case parser succeed.

    T

    the type of value

    semanticValue

    the semantic value

    index

    the next index

  8. case class ~[+A, +B](a: A, b: B) extends Product with Serializable

    Permalink

Abstract Value Members

  1. abstract def root: Parser[R]

    Permalink

    The first nonterminal.

    The first nonterminal. The parsing starts from the Parser that this method returns.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def $(literal: String): Parser[String]

    Permalink

    It is same as string method.

    It is same as string method.

  4. def %: Parser[Location]

    Permalink
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def EOF: Parser[String]

    Permalink
  7. final def any: Parser[Char]

    Permalink

    Returns a parser that matches any character except EOF.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. final def calculateLocations(): Unit

    Permalink

    Calculate all the lines and columns correspond with indexed.

    Calculate all the lines and columns correspond with indexed. This is called from parse method.

    Attributes
    protected
  10. def chainl[T](p: Parser[T])(q: Parser[(T, T) ⇒ T]): Parser[T]

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def current(index: Int): String

    Permalink
    Attributes
    protected
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def except(char: Char): Parser[String]

    Permalink

    Returns a parser that matches one character without char

    Returns a parser that matches one character without char

  16. var fatal: Option[Error]

    Permalink
    Attributes
    protected
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. var input: String

    Permalink
    Attributes
    protected
  21. final def isEOF(index: Int): Boolean

    Permalink
    Attributes
    protected
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. val locations: Map[Int, Location]

    Permalink
    Attributes
    protected
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def not(parser: Parser[Any]): Parser[Any]

    Permalink

    Returns a parser that succeeds iff parser fails.

    Returns a parser that succeeds iff parser fails.

  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def parse(input: String): Result[R]

    Permalink
  29. final def parsePartial(input: String): ParseResult[R]

    Permalink
  30. def parserOf[T](function: (Int) ⇒ ParseResult[T]): Parser[T]

    Permalink
  31. final def predict[A](cases: (Char, Parser[A])*): Parser[A]

    Permalink
  32. final def r(literal: Regex): Parser[String]

    Permalink

    It is same as regularExpression method.

    It is same as regularExpression method.

  33. var recent: Option[Failure]

    Permalink
    Attributes
    protected
  34. final def regularExpression(literal: Regex): Parser[String]

    Permalink

    Returns a parser that matches literal

    Returns a parser that matches literal

  35. final def rule[A](body: ⇒ Parser[A]): Parser[A]

    Permalink

    Returns a rule parser which argument is a body parser

  36. final def set(seqs: Seq[Char]*): Parser[String]

    Permalink

    Rerurns a parser that matches any element of seqs

    Rerurns a parser that matches any element of seqs

  37. lazy val space: Parser[String]

    Permalink
  38. final def string(literal: String): Parser[String]

    Permalink
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  41. def token(symbol: String): Parser[String]

    Permalink
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped