Changeset 3590


Ignore:
Timestamp:
Dec 22, 2013, 6:12:10 AM (5 years ago)
Author:
cameron
Message:

Document unbounded repetition convention (negative upper bound)

File:
1 edited

Legend:

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

    r3589 r3590  
    1414data RE = CC String | Seq [RE] | Alt [RE] | Rep RE Int Int |
    1515          Start | End  -- lookbehind/lookahead assertions for newline
    16 
     16-- Rep r i j represents bounded repetition, with lower bound i and
     17-- upper bound j.   We use the convention that any negative value of
     18-- j represents unbounded repetition.
    1719
    1820canonicalize :: Proto.RE -> RE
Note: See TracChangeset for help on using the changeset viewer.