Changeset 3475

Show
Ignore:
Timestamp:
05/20/05 00:19:22 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
5016
Message:

* "left" == "pre" in reduce

Files:
1 modified

Legend:

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

    r3473 r3475  
    5959            evl (App (Val sub) [Val x, Val y] []) 
    6060    case subAssoc code of 
    61         "left"  -> foldM doFold (head args) (tail args) 
    6261        "right" -> do 
    6362            let args' = reverse args 
     
    7069                    _           -> return val 
    7170            foldM doFold' (head args) (tail args) 
    72         _ -> fail $ "Cannot reduce over associativity:" ++ show (subAssoc code) 
     71        "non"   -> fail $ "Cannot reduce over non-associativity" 
     72        _       -> foldM doFold (head args) (tail args) -- "left", "pre" 
    7373 
    7474op2Grep :: Val -> Val -> Eval Val