Changeset 13614 for src/Pugs/CodeGen

Show
Ignore:
Timestamp:
09/25/06 13:11:43 (2 years ago)
Author:
audreyt
Message:

* The main package is now ::Main, not ::main.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/CodeGen/PIR.hs

    r13464 r13614  
    158158                tellIns $ "set_returns" .- retSigList [bodyC] 
    159159                tellIns $ "returncc" .- [] 
    160         return (DeclSub name [SubOUTER "main"] stmts) 
     160        return (DeclSub name [SubOUTER "MAIN"] stmts) 
    161161 
    162162instance Translate PIL_Literal Expression where 
     
    383383        , renderStyle (Style PageMode 0 0) $ preludePIR $+$ vcat 
    384384        -- Namespaces have bugs in both pugs and parrot. 
    385         [ emit $ DeclNS "main" 
     385        [ emit $ DeclNS "Main" 
    386386        [ DeclSub "init" [SubMAIN, SubANON] $ map StmtIns ( 
    387387            -- Eventually, we'll have to write our own find_name wrapper (or 
     
    421421            , "store_global"    .- [lit "$_", tempPMC] 
    422422            ]) ++ [ StmtRaw (text (name ++ "()")) | PSub name@('_':'_':_) _ _ _ _ _ <- pilGlob penv ] ++ 
    423             [ StmtRaw (text "main()") 
     423            [ StmtRaw (text "MAIN()") 
    424424            , StmtIns $ tempPMC  <-- "find_global" $ [lit "Perl6::Internals", lit "&exit"] 
    425425            , StmtIns $ "set_args" .- sigList [MkSig [] lit0] 
    426426            , StmtIns $ "invokecc" .- [tempPMC] 
    427427            ] 
    428         , DeclSub "main" [SubANON] mainPIR ] 
     428        , DeclSub "MAIN" [SubANON] mainPIR ] 
    429429        , emit globPIR ] ] 
    430430