Changeset 4922 for src/Pugs/Bind.hs
- Timestamp:
- 06/23/05 21:00:37 (4 years ago)
- svk:copy_cache_prev:
- 6771
- Files:
-
- 1 modified
-
src/Pugs/Bind.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Bind.hs
r4832 r4922 42 42 = ( ((prm, exp) : bound), exps ) 43 43 | otherwise 44 = ( bound, (Syn "=>" [Val (VStr name), exp]:exps) ) 44 = ( bound, (App (Var "&infix:=>") Nothing [Val (VStr name), exp]:exps) ) 45 45 46 46 47 matchNamedAttribute :: String -> String -> Bool … … 156 157 isPair (Pos _ exp) = isPair exp 157 158 isPair (Cxt _ exp) = isPair exp 158 isPair (Syn "=>" [(Val _), _]) = True159 159 isPair (App (Var "&infix:=>") Nothing [(Cxt _ (Val _)), _]) = True 160 160 isPair (App (Var "&infix:=>") Nothing [(Val _), _]) = True … … 168 168 unPair (Pos _ exp) = unPair exp 169 169 unPair (Cxt _ exp) = unPair exp 170 unPair (Syn "=>" [(Val k), exp]) = (vCast k, exp) 171 unPair (App (Var "&infix:=>") Nothing [(Cxt _ (Val k)), exp]) = (vCast k, exp) 172 unPair (App (Var "&infix:=>") Nothing [(Val k), exp]) = (vCast k, exp) 173 unPair x = error ("Not a pair: " ++ show x) 170 unPair (App (Var "&infix:=>") Nothing [key, exp]) 171 | Val (VStr k) <- unwrap key = (k, exp) 172 unPair x = error ("Not a pair: " ++ show x) 174 173 175 174 {-|
