Changeset 9009 for src/Pugs/CodeGen

Show
Ignore:
Timestamp:
02/15/06 16:10:35 (3 years ago)
Author:
audreyt
Message:

* Prelude-YAML compilation works:

time ./pugs -CParse-YAML src/perl6/Prelude.pm > Prelude.yml

takes 12 seconds on my laptop, resulting in a 533036-bytes
file which we may or may not want to install as part of pugs's lib.
on the other hand, it's 16k when gzipped, and 8k when bzipped.

Files:
1 modified

Legend:

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

    r8687 r9009  
    1111genParseYAML :: Eval Val 
    1212genParseYAML = do 
    13     -- glob    <- asks envGlobal 
     13    glob    <- asks envGlobal 
    1414    main    <- asks envBody 
    15     yaml    <- liftIO (showYaml main) 
     15    yaml    <- liftIO (showYaml (glob, main)) 
    1616    return (VStr yaml) 
    1717