Package

grizzled

parsing

Permalink

package parsing

Methods and classes useful for parsing various things.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. parsing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Pushback[T] extends SafeIterator[T]

    Permalink

    The Pushback trait can be mixed into an SafeIterator to permit arbitrary pushback.

  2. class SafeIterator[+T] extends AnyRef

    Permalink

    SafeIterator places a simple stream on top of an iterator, returning Option-wrapped instances from the underlying iterator.

    SafeIterator places a simple stream on top of an iterator, returning Option-wrapped instances from the underlying iterator. When the stream is exhausted, the Iterator stream returns None. Differences from a plain Iterator include:

    - An SafeIterator will not throw an exception if you try to read past the end of it. Instead, it will just keep returning None.

    Example of use with a string:

    import grizzled.parsing.SafeIterator
    
    val s = ...
    val istream = new SafeIterator[Char](s.elements)
    Annotations
    @SuppressWarnings()
  3. final case class StringToken(string: String, start: Int) extends Product with Serializable

    Permalink

    A simple string token class, consisting of:

    A simple string token class, consisting of:

    - a string token - the starting position of the token in the original string from which the token was parsed

    This class is used by the toTokens() method in grizzled.string.Implicits.String.GrizzledString.

    string

    the string token

    start

    the start of the token within the original string

  4. type IteratorStream[T] = SafeIterator[T]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.4.0) Use SafeIterator, instead

Value Members

  1. object SafeIterator

    Permalink

    Companion object for SafeIterator.

Inherited from AnyRef

Inherited from Any

Ungrouped