de.uni_luebeck.isp.compacom

SimpleTokenParsers

Related Doc: package compacom

trait SimpleTokenParsers extends Parsers

Linear Supertypes
Parsers, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SimpleTokenParsers
  2. Parsers
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class Failure(loc: Location, expected: Set[String], found: Token, completions: Set[String]) extends ParseResult[Nothing] with Product with Serializable

    Definition Classes
    Parsers
  2. abstract class ParseResult[+Result] extends AnyRef

    Definition Classes
    Parsers
  3. trait Parser[+Result] extends AnyRef

    Definition Classes
    Parsers
  4. case class Success[Result](loc: Location, result: Result, completions: Set[String], expectedAfter: Set[String]) extends ParseResult[Result] with Product with Serializable

    Definition Classes
    Parsers
  5. type Token = SimpleTokens.Token

    Definition Classes
    Parsers
  6. type Tokenizer = SimpleTokens.Tokenizer

    Definition Classes
    Parsers

Abstract Value Members

  1. abstract val tokens: SimpleTokens

    Definition Classes
    SimpleTokenParsersParsers

Concrete Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def describeAs[Result](description: String)(parser: Parser[Result]): Parser[Result]

    Set a custom description for the given parser.

    Set a custom description for the given parser. This will show up in "Expected X, but got Y" error messages instead of the token list generated by default.

    Definition Classes
    Parsers
  7. def eof: Parser[Some[SimpleTokens.EOF.type]]

    Matches at the end of file.

    Matches at the end of file. Using this rule instead of token(EOF) prevents an empty string from being added to the completions list.

    Definition Classes
    Parsers
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  13. def ident: Parser[String]

  14. def int: Parser[Int]

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def matchToken[Result](description: String, suggestions: ⇒ Set[String] = Set())(f: PartialFunction[WithLocation[Token], Result]): Parser[Result]

    This rule matches a token if the given function is defined for that function.

    This rule matches a token if the given function is defined for that function. If so the result is a Success whose value is the return value of the function. Otherwise the rule fails.

    Definition Classes
    Parsers
  17. def matchTokenAlt[Result](description: Set[String], suggestions: ⇒ Set[String] = Set())(f: PartialFunction[WithLocation[Token], Result]): Parser[Result]

    This rule matches a token if the given function is defined for that function.

    This rule matches a token if the given function is defined for that function. If so the result is a Success whose value is the return value of the function. Otherwise the rule fails.

    Definition Classes
    Parsers
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def parseAll[Result](p: ⇒ Parser[Result], s: String): ParseResult[Result]

    Definition Classes
    Parsers
  22. def parseAll[Result](p: ⇒ Parser[Result], s: Source): ParseResult[Result]

    Definition Classes
    Parsers
  23. def parseAll[Result](p: ⇒ Parser[Result], tokenizer: Tokenizer): ParseResult[Result]

    Definition Classes
    Parsers
  24. def rep1sep[T](rep: Parser[T], sep: Parser[Any]): Parser[List[T]]

    Matches one or more occurrences of rep separated by sep and produces a list of the results if successful.

    Matches one or more occurrences of rep separated by sep and produces a list of the results if successful.

    Definition Classes
    Parsers
  25. def repsep[T](rep: Parser[T], sep: Parser[Any]): Parser[List[T]]

    Matches zero or more occurrences of rep separated by sep and produces a list of the results.

    Matches zero or more occurrences of rep separated by sep and produces a list of the results.

    Definition Classes
    Parsers
  26. def string: Parser[String]

  27. def success[Result](result: ⇒ Result): Parser[Result] { def parse(input: SimpleTokenParsers.this.Tokenizer): SimpleTokenParsers.this.Success[Result] }

    Succeeds unconditionally and without consuming tokens.

    Succeeds unconditionally and without consuming tokens. The resulitng Success object will contain result as its result value.

    Definition Classes
    Parsers
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. implicit def token[T <: Token](tok: T): Parser[WithLocation[T]]

    This rule matches the given token and fails on any other token.

    This rule matches the given token and fails on any other token.

    Definition Classes
    Parsers
  31. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped