de.uni_luebeck.isp.compacom.Tokens

AbstractTokenizer

Related Doc: package Tokens

abstract class AbstractTokenizer extends Tokenizer

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

Instance Constructors

  1. new AbstractTokenizer(s: Source)

Abstract Value Members

  1. abstract def defaultTokenParser(): Token

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 consume(): Option[Char]

    Attributes
    protected
  7. def consume(n: Int): Unit

    Attributes
    protected
  8. 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
  9. def consumeWhile(p: (Char) ⇒ Boolean): String

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

    Attributes
    protected
  10. def current: Token

    Definition Classes
    AbstractTokenizerTokenizer
  11. var currentCol: Int

  12. var currentLine: Int

  13. var currentLocation: Location

    The location of the current token

    The location of the current token

    Definition Classes
    AbstractTokenizerTokenizer
  14. var currentToken: Token

  15. var currentTokenParser: () ⇒ Token

    Attributes
    protected
  16. def currentWithLocation: WithLocation[Token]

    The location and value of the current token

    The location and value of the current token

    Definition Classes
    Tokenizer
  17. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  21. def hasNext: Boolean

  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. var idx: Int

  24. 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
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. val lookaheadBuffer: Queue[Option[Char]]

  27. def moveNext(includeIgnored: Boolean = false): Unit

    Definition Classes
    AbstractTokenizerTokenizer
  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 oneOf(tokens: Iterable[Token]): Option[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
  32. def peek(n: Int = 0): Option[Char]

    Attributes
    protected
  33. 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
  34. 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
  35. 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
  36. 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
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Tokenizer

Inherited from AnyRef

Inherited from Any

Ungrouped