Changeset 16627 for src/Pugs/Compile

Show
Ignore:
Timestamp:
06/04/07 10:08:30 (18 months ago)
Author:
gaal
Message:

* reintroduce the description field in CompUnit?, and chase codeGens

to use the filename where possible.
You may need to "rm blib6/lib/*yml" with this revision.
TODO: think about adding a parser revision number to the compunit

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile/Pugs.hs

    r16340 r16627  
    198198    -} 
    199199 
    200 genPugs :: Eval Val 
    201 genPugs = do 
     200genPugs :: FilePath -> Eval Val 
     201genPugs file = do 
    202202    exp             <- asks envBody 
    203203    glob            <- askGlobal 
     
    214214        , "import qualified Data.Set as Set" 
    215215        , "" 
     216        , "-- compiled from " ++ file ++ " with -CPugs" 
     217        , "" 
    216218        , "main = do" 
    217219        , "    glob <- globC"