Ignore:
Timestamp:
Dec 19, 2013, 3:32:48 PM (5 years ago)
Author:
cameron
Message:

Canonical RE demo

File:
1 edited

Legend:

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

    r3588 r3589  
    77
    88
    9 module CanonicalRE (RE(..), minMatchLen, removeNullablePrefix) where
     9module CanonicalRE (RE(..), canonicalize, minMatchLen, removeNullablePrefix) where
    1010       
    1111import qualified RE_Proto as Proto
     
    3838minMatchLen :: RE -> Int
    3939minMatchLen (CC s) = 1
     40minMatchLen Start = 1
     41minMatchLen End = 1
    4042minMatchLen (Seq []) = 0
    4143minMatchLen (Seq (r:rs)) = minMatchLen r + (minMatchLen (Seq rs))
Note: See TracChangeset for help on using the changeset viewer.