Changeset 7854

Show
Ignore:
Timestamp:
11/05/05 21:27:53 (3 years ago)
Author:
autrijus
Message:

* Accomodate Parrot trunk's PGE::Hs change (r9802)

to capture the PGE_String form in Matches.

Location:
src/Pugs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/Match.hs

    r7579 r7854  
    3030    rv  <- tryIO Nothing $ fmap Just (readIO $ decodeUTF8 pge) 
    3131    let matchToVal PGE_Fail = VMatch mkMatchFail 
     32        matchToVal (PGE_String str) = VStr str 
    3233        matchToVal (PGE_Array ms) = VList (map matchToVal ms) 
    3334        matchToVal (PGE_Match from to pos named) = VMatch $ 
  • src/Pugs/Types.hs

    r7190 r7854  
    153153    = PGE_Match !Int !Int ![MatchPGE] ![(VStr, MatchPGE)] 
    154154    | PGE_Array ![MatchPGE] 
     155    | PGE_String !String 
    155156    | PGE_Fail 
    156157    deriving (Show, Eq, Ord, Read, Typeable)