Changeset 17044 for src/Pugs/Prim/Match.hs
- Timestamp:
- 07/14/07 04:25:29 (17 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Prim/Match.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Match.hs
r15616 r17044 2 2 3 3 module Pugs.Prim.Match ( 4 op2Match, rxSplit, rxSplit_n, matchFromMR,pkgParents, pkgParentClasses4 op2Match, rxSplit, rxSplit_n, pkgParents, pkgParentClasses 5 5 ) where 6 6 import Pugs.Internals … … 91 91 csBytes = encodeUTF8 csChars 92 92 93 matchFromMR :: MatchResult Char -> Val94 matchFromMR mr = VMatch $ mkMatchOk 0 0 (decodeUTF8 all) subsMatch Map.empty95 where96 (all:subs) = elems $ mrSubs mr97 subsMatch = [ VMatch $ mkMatchOk 0 0 (decodeUTF8 sub) [] Map.empty | sub <- subs ]98 99 93 -- Used in op2Match 100 94 not_VRule :: Val -> Bool
