Changeset 15777 for src/Pugs/Compile
- Timestamp:
- 03/22/07 20:58:32 (20 months ago)
- Location:
- src/Pugs/Compile
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Compile/PIL2.hs
r15616 r15777 433 433 initTEnv :: Eval TEnv 434 434 initTEnv = do 435 initReg <- stm $ newTVar(0, "")436 initLbl <- stm $ newTVar0435 initReg <- io $ newTVarIO (0, "") 436 initLbl <- io $ newTVarIO 0 437 437 return $ MkTEnv 438 438 { tLexDepth = 0 -
src/Pugs/Compile/Pugs.hs
r15745 r15777 130 130 if Str.null vrefC then return Str.empty else do 131 131 tv <- io $ fmap (Str.pack . ('t':) . show . hashUnique) newUnique 132 tell [Str.concat [tv, Str.pack " <- stm (newTVar", vrefC, Str.pack ");\n"]]132 tell [Str.concat [tv, Str.pack " <- io (newTVarIO ", vrefC, Str.pack ");\n"]] 133 133 return tv 134 134
