Changeset 7127 for src/Main.hs

Show
Ignore:
Timestamp:
09/24/05 15:28:50 (3 years ago)
Author:
iblech
Message:

* Usual svn props.
* PIL2JS: runjs.pl: Added --compile-only option, needed for new -CJS.
* Main: Added support for -CJS and unbroke -CPIR.
* Pugs.CodeGen?: Better normalization so -h looks prettier (it's "PIL", not

"Pil", for example).

* Pugs.Help: Add JS to the list of backends supported.
* pugs::hack: Accomodate for the above changes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Main.hs

    r7117 r7127  
    7979run ("-c":file:_)               = readFile file >>= doCheck file 
    8080 
     81run ("-C":backend:args) | map toUpper backend == "JS" = 
     82    doHelperRun "JS" ("--compile-only":args) 
    8183run ("-C":backend:"-e":prog:_)           = doCompileDump backend "-e" prog 
    8284run ("-C":backend:file:_)                = slurpFile file >>= doCompileDump backend file 
    8385 
    84 run ("-B":backend:args)                  = doHelperRun backend args 
     86run ("-B":backend:args) | (== map toLower backend) `any` ["js","perl5"] = 
     87    doHelperRun backend args 
     88run ("-B":backend:"-e":prog:_)           = doCompileRun backend "-e" prog 
     89run ("-B":backend:file:_)                = slurpFile file >>= doCompileRun backend file 
    8590 
    8691run ("--external":mod:"-e":prog:_)    = doExternal mod "-e" prog