Changeset 15297 for src/Pugs/AST.hs
- Timestamp:
- 02/18/07 15:59:02 (21 months ago)
- Files:
-
- 1 modified
-
src/Pugs/AST.hs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/AST.hs
r15296 r15297 1 {-# OPTIONS_GHC -cpp -fglasgow-exts -fno-warn-orphans -funbox-strict-fields -fallow-overlapping-instances -foverloaded-strings#-}1 {-# OPTIONS_GHC -cpp -fglasgow-exts -fno-warn-orphans -funbox-strict-fields -fallow-overlapping-instances #-} 2 2 3 3 {-| … … 216 216 mergeStmts x y = Stmts x y 217 217 218 isImplicitTopic :: ID-> Bool218 isImplicitTopic :: String -> Bool 219 219 isImplicitTopic "subst" = True 220 220 isImplicitTopic "match" = True … … 234 234 235 235 _underscore :: ID 236 _underscore = _cast "_"236 _underscore = cast "_" 237 237 238 238 newPackage :: String -> String -> [String] -> [String] -> Exp … … 244 244 (Just $ Val (VType $ mkType cls)) 245 245 [ Syn "named" 246 [ Val ( _VStr "is")247 , Val (VList $ map castVclasses)246 [ Val (VStr "is") 247 , Val (VList $ map VStr classes) 248 248 ] 249 249 , Syn "named" 250 [ Val ( _VStr "does")251 , Val (VList $ map castVroles)250 [ Val (VStr "does") 251 , Val (VList $ map VStr roles) 252 252 ] 253 253 , Syn "named" 254 [ Val ( _VStr "name")255 , Val ( castVname)254 [ Val (VStr "name") 255 , Val (VStr name) 256 256 ] 257 257 , Syn "named" 258 [ Val ( _VStr "attrs")258 [ Val (VStr "attrs") 259 259 , Syn "\\{}" [Noop] 260 260 ]
