Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- tokensToForest :: [Token] -> Either ParseTokenForestError (Forest Token)
- data ParseTokenForestError = ParseTokenForestErrorBracketMismatch PStack (Maybe Token)
- data PStack = PStack {
- _pstackToplevelSiblings :: Forest Token
- _pstackParents :: [(Token, Forest Token)]
- nonClosing :: [Text]
- tokensFromForest :: Forest Token -> [Token]
- tokensFromTree :: Tree Token -> [Token]
Constructing forests
tokensToForest :: [Token] -> Either ParseTokenForestError (Forest Token) Source #
data ParseTokenForestError Source #
PStack | |
|
nonClosing :: [Text] Source #