de.uni_luebeck.isp.compacom.examples.BasicExpTokens

BasicExpTokenizer

Related Doc: package BasicExpTokens

class BasicExpTokenizer extends SimpleTokenizer

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BasicExpTokenizer
  2. SimpleTokenizer
  3. AbstractTokenizer
  4. Tokenizer
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BasicExpTokenizer(s: Source)

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. val comments: List[(String, String)]

    A list of start-end pairs.

    A list of start-end pairs. Anything between the start string and the end string will be ignored. Comments are not recursive. Comments are automatically closed at the end of file.

    As comments are checked before anything else, the starting string of a comment must not be the prefix of any other valid token (or else that token will never be matched).

    Example:

    val comments = List("//" -> "\n", "/*" -> "*/")
    Definition Classes
    BasicExpTokenizerSimpleTokenizer
  7. def consume(): Option[Char]

    Attributes
    protected
    Definition Classes
    AbstractTokenizer
  8. def consume(n: Int): Unit

    Attributes
    protected
    Definition Classes
    AbstractTokenizer
  9. def consumeString(str: String): Boolean

    If the next characters in the input stream are equal to the given string, consume them and return true.

    If the next characters in the input stream are equal to the given string, consume them and return true. Otherwise return false.

    Attributes
    protected
    Definition Classes
    AbstractTokenizer
  10. def consumeWhile(p: (Char) ⇒ Boolean): String

    Same as de.uni_luebeck.isp.compacom.Tokens.AbstractTokenizer.peekWhile, but consume the characters.

    Attributes
    protected
    Definition Classes
    AbstractTokenizer
  11. def current: BasicExpTokens.Token

    Definition Classes
    AbstractTokenizerTokenizer
  12. var currentCol: Int

    Definition Classes
    AbstractTokenizer
  13. var currentLine: Int

    Definition Classes
    AbstractTokenizer
  14. var currentLocation: Location

    The location of the current token

    The location of the current token

    Definition Classes
    AbstractTokenizerTokenizer
  15. var currentToken: BasicExpTokens.Token

    Definition Classes
    AbstractTokenizer
  16. var currentTokenParser: () ⇒ BasicExpTokens.Token

    Attributes
    protected
    Definition Classes
    AbstractTokenizer
  17. def currentWithLocation: WithLocation[BasicExpTokens.Token]

    The location and value of the current token

    The location and value of the current token

    Definition Classes
    Tokenizer
  18. def defaultTokenParser(): BasicExpTokens.Token

    Definition Classes
    SimpleTokenizerAbstractTokenizer
  19. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  23. def hasNext: Boolean

    Definition Classes
    AbstractTokenizer
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. var idx: Int

    Definition Classes
    AbstractTokenizer
  26. def index: Int

    The index of the current token (a.k.a.

    The index of the current token (a.k.a. the number of tokens previously read). This is used to determine whether a parser rule consumed more than one token, which is necessary when determining whether to ask the second rule for completions when evaluating alternatives (see definition of Parsers.|).

    Definition Classes
    AbstractTokenizerTokenizer
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. val keywords: List[Product with Serializable with BasicExpTokens.Token]

    A list of tokens that fit the rules for being identifiers, but should be tokenized as - * something else instead

    A list of tokens that fit the rules for being identifiers, but should be tokenized as - * something else instead

    Definition Classes
    BasicExpTokenizerSimpleTokenizer
  29. val lookaheadBuffer: Queue[Option[Char]]

    Definition Classes
    AbstractTokenizer
  30. def moveNext(includeIgnored: Boolean = false): Unit

    Definition Classes
    AbstractTokenizerTokenizer
  31. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  34. def oneOf(tokens: Iterable[BasicExpTokens.Token]): Option[BasicExpTokens.Token]

    Return a Some containing the first of the given token that matches the current input or None if none do.

    Return a Some containing the first of the given token that matches the current input or None if none do.

    If a match is found, the tokenizer is advanced to after the match. Otherwise the tokenizer does not move.

    This method can be used to easily match all symbolic tokens in one swoop. It can not be used to match alphanumeric keywords as you wouldn't want to match "def" when the input is "definitely".

    Attributes
    protected
    Definition Classes
    AbstractTokenizer
  35. def peek(n: Int = 0): Option[Char]

    Attributes
    protected
    Definition Classes
    AbstractTokenizer
  36. def peekStream: Stream[Char]

    A stream containing the characters returned by peek(0) onwards.

    A stream containing the characters returned by peek(0) onwards.

    Attributes
    protected
    Definition Classes
    AbstractTokenizer
  37. def peekString(length: Int): String

    Return a string containing the next length characters without consuming any.

    Return a string containing the next length characters without consuming any.

    Attributes
    protected
    Definition Classes
    AbstractTokenizer
  38. def peekWhile(p: (Char) ⇒ Boolean): String

    Return a string containing all the characters in the input until the first that does not meet the predicate without consuming any.

    Return a string containing all the characters in the input until the first that does not meet the predicate without consuming any.

    Attributes
    protected
    Definition Classes
    AbstractTokenizer
  39. var previousPosition: Position

    The end position of the previous token, that is the position that the input stream was at before the current token was matched.

    The end position of the previous token, that is the position that the input stream was at before the current token was matched. The area from this position to the starting position of the current location should contain exactly the characters that were discarded between the previous token and the current one.

    Definition Classes
    AbstractTokenizerTokenizer
  40. val symbols: List[Product with Serializable with BasicExpTokens.Token]

    A list of tokens that aren't integers, strings, comments, spaces or identifiers and don't overlap with either.

    A list of tokens that aren't integers, strings, comments, spaces or identifiers and don't overlap with either.

    Definition Classes
    BasicExpTokenizerSimpleTokenizer
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. def toString(): String

    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BasicExpTokens.Tokenizer

Inherited from AnyRef

Inherited from Any

Ungrouped