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. class IteratorStream[T] extends AnyRef

    Permalink

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

    IteratorStream 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 IteratorStream 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.IteratorStream
    
    val s = ...
    val istream = new IteratorStream[Char](s.elements)
  2. trait Pushback[T] extends IteratorStream[T]

    Permalink

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

  3. 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

Inherited from AnyRef

Inherited from Any

Ungrouped