yi-misc-modes-0.19.1: Yi editor miscellaneous modes

License | GPL-2
Maintainer | yi-devel@googlegroups.com
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell2010

Extensions

- DeriveFunctor
- DeriveFoldable

Yi.Syntax.Latex

Description

Parser used by the LaTeX modes.

# Documentation

isNoise :: Token -> Bool Source #

type TT = Tok Token Source #

type Expr t = [Tree t] Source #

data Tree t Source #

Constructors

Paren t (Tree t) t |
Atom t |
Error t |
Expr (Expr t) |

#### Instances

Instances details

Functor Tree Source # |
Instance details Defined in Yi.Syntax.Latex Methods fmap :: (a -> b) -> Tree a -> Tree b Source # (<$) :: a -> Tree b -> Tree a Source #
Foldable Tree Source # |

Instance details

Defined in Yi.Syntax.Latex

Methods

fold :: Monoid m => Tree m -> m Source #

foldMap :: Monoid m => (a -> m) -> Tree a -> m Source #

foldMap' :: Monoid m => (a -> m) -> Tree a -> m Source #

foldr :: (a -> b -> b) -> b -> Tree a -> b Source #

foldr' :: (a -> b -> b) -> b -> Tree a -> b Source #

foldl :: (b -> a -> b) -> b -> Tree a -> b Source #

foldl' :: (b -> a -> b) -> b -> Tree a -> b Source #

foldr1 :: (a -> a -> a) -> Tree a -> a Source #

foldl1 :: (a -> a -> a) -> Tree a -> a Source #

toList :: Tree a -> [a] Source #

null :: Tree a -> Bool Source #

length :: Tree a -> Int Source #

elem :: Eq a => a -> Tree a -> Bool Source #

maximum :: Ord a => Tree a -> a Source #

minimum :: Ord a => Tree a -> a Source #

sum :: Num a => Tree a -> a Source #

product :: Num a => Tree a -> a Source #

IsTree Tree Source # |
Instance details Defined in Yi.Syntax.Latex Methods subtrees :: Tree t -> [Tree t] Source # uniplate :: Tree t -> ([Tree t], [Tree t] -> Tree t) Source # emptyNode :: Tree t Source #
Show t => Show (Tree t) Source # |
Instance details Defined in Yi.Syntax.Latex Methods showsPrec :: Int -> Tree t -> ShowS Source # show :: Tree t -> String Source # showList :: [Tree t] -> ShowS Source #

parse :: P TT (Tree TT) Source #

getStrokes :: Point -> Point -> Point -> Tree TT -> [Stroke] Source #

modStroke :: StyleName -> Stroke -> Stroke Source #

tokenToStroke :: TT -> Stroke Source #

tokenToAnnot :: TT -> Maybe (Span String) Source #

tokenToStyle :: Token -> StyleName Source #

isSpecial :: String -> Token -> Bool Source #

isBegin :: Token -> Bool Source #

isEnd :: Token -> Bool Source #

isErrorTok :: Token -> Bool Source #