tlex-0.4.0.0: A lexer generator
Safe HaskellSafe-Inferred
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 #

(Enum e, Show e, 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 #

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 #

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 #

(Enum e, Show e, 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 #

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 #

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 #

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

Defined in Language.Lexer.Tlex.Syntax

Eq f => Eq (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 #

Instances

Instances details
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 #

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, Show e) => 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 #

Eq (Pattern e) 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Methods

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

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

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 #

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 #

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 #

data AcceptPriority #

Instances

Instances details
Enum AcceptPriority 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern

Show 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

Hashable AcceptPriority 
Instance details

Defined in Language.Lexer.Tlex.Machine.Pattern