Changeset 3827


Ignore:
Timestamp:
Apr 17, 2014, 8:08:30 PM (3 years ago)
Author:
cameron
Message:

Initial prototype conversion to UTF8

Location:
proto/RE/Haskell
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • proto/RE/Haskell/CanonicalRE.hs

    r3614 r3827  
    88module CanonicalRE (RE(..), RepLimit(..)) where
    99
     10import SparseCharSet
     11
    1012-- RE is the data type for regular expressions
    1113
    12 data RE = CC String | Start | End | Seq [RE] | Alt [RE] | Rep (RE, Int, RepLimit)
     14data RE = CC SparseCharClass | Start | End | Seq [RE] | Alt [RE] | Rep (RE, Int, RepLimit)
    1315          deriving Show
    1416data RepLimit = UpperBound Int | Unbounded deriving Show
    1517
     18-- In the following comments, CC String is used instead of CC SparseCharClass for
     19-- illustrative purposes.
     20--
    1621-- CC "abcd" represents the character class with the 4 characters a, b, c and d, i.e., [a-d].
    1722-- Start represents the ^ metacharacter for start of line or string matching
Note: See TracChangeset for help on using the changeset viewer.