| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Alex.Ast
Description
An Alex lexer, as far as generating text for its tokens needs it. Macros are expanded while parsing, so a regex stands on its own.
Documentation
The rules of a lexer, in order.
A set of characters: these characters, or all characters but these.
Instances
A regex with its macros expanded.
Instances
| Generic Regex Source # | |||||
Defined in Language.Alex.Ast Associated Types
| |||||
| Show Regex Source # | |||||
| Eq Regex Source # | |||||
| Ord Regex Source # | |||||
| type Rep Regex Source # | |||||
Defined in Language.Alex.Ast type Rep Regex = D1 ('MetaData "Regex" "Language.Alex.Ast" "happy-arbitrary-0.0.3-inplace" 'False) ((C1 ('MetaCons "RString" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: (C1 ('MetaCons "RSet" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CharSet)) :+: C1 ('MetaCons "RStar" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Regex)))) :+: ((C1 ('MetaCons "RPlus" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Regex)) :+: C1 ('MetaCons "ROpt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Regex))) :+: (C1 ('MetaCons "RSeq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Regex])) :+: C1 ('MetaCons "RAlt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Regex]))))) | |||||
A lexer rule: where it applies, what it matches, and its action.
Constructors
| Rule | |
Instances
| Generic Rule Source # | |||||
Defined in Language.Alex.Ast Associated Types
| |||||
| Show Rule Source # | |||||
| Eq Rule Source # | |||||
| Ord Rule Source # | |||||
| type Rep Rule Source # | |||||
Defined in Language.Alex.Ast type Rep Rule = D1 ('MetaData "Rule" "Language.Alex.Ast" "happy-arbitrary-0.0.3-inplace" 'False) (C1 ('MetaCons "Rule" 'PrefixI 'True) (S1 ('MetaSel ('Just "ruleStartCodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "ruleRegex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Regex) :*: S1 ('MetaSel ('Just "ruleCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) | |||||