gridtables-0.1.0.0: Parser for reStructuredText-style grid tables.
Copyright© 2022 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <albert@zeitkraut.de>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.GridTable.Trace

Description

Trace cells of a grid table.

Synopsis

Documentation

traceLines :: [Text] -> Maybe (ArrayTable [Text]) Source #

Traces out the cells in the given lines and converts them to a table containing the bare cell lines.

data TraceInfo Source #

Info on the grid. Used to keep track of information collected while tracing a character grid. The set of cells is used as a kind of queue during parsing, while the other data is required to assemble the final table.

Constructors

TraceInfo 

Fields

initialTraceInfo :: TraceInfo Source #

Initial tracing info.

tableFromTraceInfo :: TraceInfo -> [PartSeparator] -> Maybe [ColSpec] -> ArrayTable [Text] Source #

Create a final grid table from line scanning data.