Changeset 32 for src/Prim.hs
- Timestamp:
- 02/16/05 18:48:28 (4 years ago)
- svk:copy_cache_prev:
- 1041
- Files:
-
- 1 modified
-
src/Prim.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Prim.hs
r31 r32 58 58 liftIO . putStr . concatMap vCast . vCast $ v 59 59 return $ VUndef 60 op1 "say" = \v -> do 61 liftIO . putStrLn . concatMap vCast . vCast $ v 62 return $ VUndef 63 op1 "die" = \v -> do 64 return $ VError (concatMap vCast . vCast $ v) (Val v) 65 op1 "exit" = \v -> do 66 if vCast v 67 then liftIO $ exitWith (ExitFailure $ vCast v) 68 else liftIO $ exitWith ExitSuccess 60 69 61 70 op1 s = return . (\x -> VError ("unimplemented unaryOp: " ++ s) (Val x)) … … 260 269 \\n Num pre rand (?Num=1)\ 261 270 \\n Action pre print (List)\ 271 \\n Action pre say (List)\ 272 \\n Action pre die (List)\ 273 \\n Any pre do (Str)\ 262 274 \\n Any pre return (Any)\ 263 275 \\n Junction pre any (List)\
