tlex-0.2.0.0: A lexer generator
Safe HaskellNone
LanguageHaskell2010

Language.Lexer.Tlex.Syntax

Documentation

newtype Scanner e a Source #

Constructors

Scanner 

Fields

Instances

Instances details
Functor (Scanner e) Source # 
Instance details

Defined in Language.Lexer.Tlex.Syntax

Methods

fmap :: (a -> b) -> Scanner e a -> Scanner e b #

(<$) :: a -> Scanner e b -> Scanner e a #

Eq a => Eq (Scanner e a) Source # 
Instance details

Defined in Language.Lexer.Tlex.Syntax

Methods

(==) :: Scanner e a -> Scanner e a -> Bool #

(/=) :: Scanner e a -> Scanner e a -> Bool #

Show a => Show (Scanner e a) Source # 
Instance details

Defined in Language.Lexer.Tlex.Syntax

Methods

showsPrec :: Int -> Scanner e a -> ShowS #

show :: Scanner e a -> String #

showList :: [Scanner e a] -> ShowS #

data ScanRule e a Source #

Instances

Instances details
Functor (ScanRule e) Source # 
Instance details

Defined in Language.Lexer.Tlex.Syntax

Methods

fmap :: (a -> b) -> ScanRule e a -> ScanRule e b #

(<$) :: a -> ScanRule e b -> ScanRule e a #

Eq a => Eq (ScanRule e a) Source # 
Instance details

Defined in Language.Lexer.Tlex.Syntax

Methods

(==) :: ScanRule e a -> ScanRule e a -> Bool #

(/=) :: ScanRule e a -> ScanRule e a -> Bool #

Show a => Show (ScanRule e a) Source # 
Instance details

Defined in Language.Lexer.Tlex.Syntax

Methods

showsPrec :: Int -> ScanRule e a -> ShowS #

show :: ScanRule e a -> String #

showList :: [ScanRule e a] -> ShowS #

data ScannerBuilderContext s e f Source #

Instances

Instances details
Functor (ScannerBuilderContext s e) Source # 
Instance details

Defined in Language.Lexer.Tlex.Syntax

Methods

fmap :: (a -> b) -> ScannerBuilderContext s e a -> ScannerBuilderContext s e b #

(<$) :: a -> ScannerBuilderContext s e b -> ScannerBuilderContext s e a #

Eq f => Eq (ScannerBuilderContext s e f) Source # 
Instance details

Defined in Language.Lexer.Tlex.Syntax

Show f => Show (ScannerBuilderContext s e f) Source # 
Instance details

Defined in Language.Lexer.Tlex.Syntax

lexRule :: Enum s => Enum e => [s] -> Pattern e -> f -> ScannerBuilder s e f () Source #

data Pattern (e :: k) #

Instances

Instances details
Eq (Pattern e) 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Methods

(==) :: Pattern e -> Pattern e -> Bool #

(/=) :: Pattern e -> Pattern e -> Bool #

Show (Pattern e) 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Methods

showsPrec :: Int -> Pattern e -> ShowS #

show :: Pattern e -> String #

showList :: [Pattern e] -> ShowS #

Enum e => Semigroup (Pattern e) 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Methods

(<>) :: Pattern e -> Pattern e -> Pattern e #

sconcat :: NonEmpty (Pattern e) -> Pattern e #

stimes :: Integral b => b -> Pattern e -> Pattern e #

Enum e => Monoid (Pattern e) 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Methods

mempty :: Pattern e #

mappend :: Pattern e -> Pattern e -> Pattern e #

mconcat :: [Pattern e] -> Pattern e #

enumsP :: Enum e => [e] -> Pattern e #

someP :: Enum e => Pattern e -> Pattern e Source #

manyP :: Enum e => Pattern e -> Pattern e Source #

orP :: Enum e => [Pattern e] -> Pattern e Source #

data Accept a #

Constructors

Accept 

Instances

Instances details
Functor Accept 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Methods

fmap :: (a -> b) -> Accept a -> Accept b #

(<$) :: a -> Accept b -> Accept a #

Eq a => Eq (Accept a) 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Methods

(==) :: Accept a -> Accept a -> Bool #

(/=) :: Accept a -> Accept a -> Bool #

Show a => Show (Accept a) 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Methods

showsPrec :: Int -> Accept a -> ShowS #

show :: Accept a -> String #

showList :: [Accept a] -> ShowS #

data AcceptPriority #

Instances

Instances details
Enum AcceptPriority 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Eq AcceptPriority 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Ord AcceptPriority 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Show AcceptPriority 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Hashable AcceptPriority 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern