Enumerator

scallion.Enumeration.Enumerator
object Enumerator

Factory of iterators over sequences accepted by a syntax.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Enumerator.type

Members list

Grouped members

enumeration

def apply[A](syntax: Syntax[_], kindFunction: Kind => A)(markFunction: PartialFunction[Mark, A]): Iterator[Iterator[A]]

Returns an iterator that iterates over sequences accepted by a syntax.

Returns an iterator that iterates over sequences accepted by a syntax.

Value parameters

kindFunction

Function to convert kinds to the desired type.

markFunction

Partial function to converted marked syntaxes into a single value.

syntax

The syntax from which sequences are taken.

Attributes

def apply(syntax: Syntax[_]): Iterator[Iterator[Kind]]

Returns an iterator that iterates over sequences of kinds accepted by a syntax.

Returns an iterator that iterates over sequences of kinds accepted by a syntax.

Value parameters

syntax

The syntax from which sequences are taken.

Attributes