
Hi Do you mind tell what is mean by the symbol $ in this piece of code? Thanks a lot.
mcompile :: Prog -> State Int Code mcompile (Assign n e) = return $ compileExpr e ++ [POP n] mcompile (If e p1 p2) = do cur <- fresh pp1 <- mcompile p1 pp2 <- mcompile p2 return $ (compileExpr e ++ (JUMPZ cur):pp1 ++ JUMP (cur+1):(LABEL cur):pp2 ++ [LABEL (cur+1)]) mcompile (While e p) = do cur <- fresh mp <- mcompile p return $ [LABEL cur] ++ compileExpr e ++ [JUMPZ (cur+1)] ++ mp ++ [JUMP cur,LABEL (cur+1)] -- View this message in context: http://www.nabble.com/symbol-%24-tf3701618.html#a10351407 Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.