Packages

object BasicExps extends SimpleTokenParsers

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BasicExps
  2. SimpleTokenParsers
  3. Parsers
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Failure (loc: Location, expected: Set[String], found: Token, completions: Set[ICompletion]) 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[ICompletion], expectedAfter: Set[String]) extends ParseResult[Result] with Product with Serializable
    Definition Classes
    Parsers
  5. case class Suggestion (fullToken: String, replacementString: String, docString: Option[String]) extends Product with Serializable
    Definition Classes
    Parsers
  6. case class Add (lhs: Exp, rhs: Exp) extends Exp with Product with Serializable
  7. case class Const (value: Int) extends Exp with Product with Serializable
  8. sealed abstract class Exp extends AnyRef
  9. case class Fac (operand: Exp) extends Exp with Product with Serializable
  10. case class ITE (cond: Exp, thenExp: Exp, elseExp: Exp) extends Exp with Product with Serializable
  11. case class Mult (lhs: Exp, rhs: Exp) extends Exp with Product with Serializable
  12. case class Var (name: String) extends Exp with Product with Serializable

Value Members

  1. object Suggestion extends Serializable
    Definition Classes
    Parsers
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##(): Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def additiveExp: Parser[Exp]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val completionTokenDelimiter: String

    Delimiter that is inserted before the completion when a completion creates a completely new token and no other delimiter is already present (and we're not at the beginning of the file).

    Delimiter that is inserted before the completion when a completion creates a completely new token and no other delimiter is already present (and we're not at the beginning of the file).

    The purpose of this is to make '"if", ctrl+space, select "myCond"' complete to "if myCond" rather than "ifmyCond" (in a language where "myCond" would be a valid token after "if").

    If a space is not a suitable token delimiter in your language, override this to something that is.

    Definition Classes
    Parsers
  9. def const: Parser[Const]
  10. 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
  11. def eof: Parser[Some[BasicExpTokens.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
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def exp: Parser[Exp]
  15. def fail: Parser[Nothing]

    Parser that fails unconditionally.

    Parser that fails unconditionally.

    This is useful as a default when combining a possibly-empty list of parsers with | for example.

    Definition Classes
    Parsers
  16. def fail(expected: String): Parser[Nothing]

    Parser that fails unconditionally.

    Parser that fails unconditionally.

    This is useful as a default when combining a possibly-empty list of parsers with | for example.

    expected

    The message associated with this rule in "X expected, but Y found" error messages.

    Definition Classes
    Parsers
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def float: Parser[String]
    Definition Classes
    SimpleTokenParsers
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  21. def ident: Parser[String]
    Definition Classes
    SimpleTokenParsers
  22. def int: Parser[String]
    Definition Classes
    SimpleTokenParsers
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def main(args: Array[String]): Unit
  25. def matchToken[Result](description: String, suggestions: ⇒ Set[Suggestion] = Set())(f: PartialFunction[WithLocation[BasicExpTokens.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
  26. def matchTokenAlt[Result](description: Set[String], suggestions: ⇒ Set[Suggestion] = Set())(f: PartialFunction[WithLocation[BasicExpTokens.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
  27. def multExp: Parser[Exp]
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  31. def parseAll[Result](p: ⇒ Parser[Result], s: String): ParseResult[Result]
    Definition Classes
    Parsers
  32. def parseAll[Result](p: ⇒ Parser[Result], s: Source): ParseResult[Result]
    Definition Classes
    Parsers
  33. def parseAll[Result](p: ⇒ Parser[Result], s: LookaheadSource): ParseResult[Result]
    Definition Classes
    Parsers
  34. def parseAll[Result](p: ⇒ Parser[Result], TokenIterator: BasicExpTokenizer.TokenIterator): ParseResult[Result]
    Definition Classes
    Parsers
  35. def primExp: Parser[Exp]
  36. 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
  37. 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
  38. def string: Parser[String]
    Definition Classes
    SimpleTokenParsers
  39. def success[Result](result: ⇒ Result): Parser[Result] { def parse(input: de.uni_luebeck.isp.compacom.examples.BasicExps.tokenizer.TokenIterator): de.uni_luebeck.isp.compacom.examples.BasicExps.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
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. implicit def token[T <: BasicExpTokens.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
  43. def token[T <: BasicExpTokens.Token](tok: T, docString: String): 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.

    The given docstring will be used as the documentation for the completion produced for this token.

    Definition Classes
    Parsers
  44. val tokenizer: BasicExpTokenizer.type
    Definition Classes
    BasicExpsSimpleTokenParsersParsers
  45. def variable: Parser[Var]
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def when[T](condition: Boolean)(thenParser: ⇒ Parser[T]): Parser[T]

    Only use the given parser when the given condition is met.

    Only use the given parser when the given condition is met. When the condition is not met, this parser fails unconditionally.

    Definition Classes
    Parsers

Inherited from SimpleTokenParsers

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped