License | GPL-2 |
---|---|
Maintainer | yi-devel@googlegroups.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
Parser for Haskell that only cares about parenthesis and layout.
- indentScanner :: Scanner (AlexState lexState) TT -> Scanner (State Token lexState) TT
- isBrace :: TT -> Bool
- ignoredToken :: TT -> Bool
- isNoise :: Token -> Bool
- type Expr t = [Tree t]
- data Tree t
- getIndentingSubtree :: Tree TT -> Point -> Int -> Maybe (Tree TT)
- getSubtreeSpan :: Tree TT -> (Point, Int)
- parse :: P TT (Tree TT)
- parse' :: (TT -> Token) -> (Token -> TT) -> P TT [Tree TT]
- getStrokes :: Point -> Point -> Point -> Tree TT -> [Stroke]
- tokenToStroke :: TT -> Stroke
- modStroke :: StyleName -> Stroke -> Stroke
- tokenToAnnot :: TT -> Maybe (Span String)
- errTok :: Parser (Tok t) (Tok Token)
Documentation
ignoredToken :: TT -> Bool Source #
getIndentingSubtree :: Tree TT -> Point -> Int -> Maybe (Tree TT) Source #
Search the given list, and return the 1st tree after the given point on the given line. This is the tree that will be moved if something is inserted at the point. Precondition: point is in the given line.
getSubtreeSpan :: Tree TT -> (Point, Int) Source #
Given a tree, return (first offset, number of lines).
tokenToStroke :: TT -> Stroke Source #