hw-balancedparens-0.4.1.0: Balanced parentheses

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.BalancedParens.Internal.Broadword.FindUnmatchedCloseFar.Word16

Synopsis

Documentation

findUnmatchedCloseFar :: Word64 -> Word64 -> Word16 -> Word64 Source #

Find the position of the first unmatch parenthesis.

This is the broadword implementation of findCloseFor.

See Broadword Implementation of Parenthesis Queries, Sebastiano Vigna, 2013

findClose :: Word16 -> Count -> Maybe Count Source #

Find the position of the matching close parenthesis.

The position argument and return value is one-based.

If the parenthesis at the input position is an a close, then that is considered the matching close parenthesis.