PrimitiveArray-0.7.0.0: Efficient multidimensional arrays

Safe HaskellNone
LanguageHaskell2010

Data.PrimitiveArray.Index.Point

Contents

Description

Point index structures are used for left- and right-linear grammars. Such grammars have at most one syntactic symbol on each r.h.s. of a rule. The syntactic symbol needs to be in an outermost position.

Synopsis

Documentation

newtype PointL t Source

A point in a left-linear grammar. The syntactic symbol is in left-most position.

Constructors

PointL 

Fields

fromPointL :: Int
 

streamUpMk :: Monad m => t1 -> t -> m (t, t1) Source

streamUpStep :: Monad m => Int -> (t1, Int) -> m (Step (t1, Int) ((:.) t1 (PointL t))) Source

streamDownMk :: Monad m => t1 -> t -> m (t, t1) Source

streamDownStep :: Monad m => Int -> (t1, Int) -> m (Step (t1, Int) ((:.) t1 (PointL t))) Source

PointR