1
0
forked from GitHub/gf-core

GFCCtoJS in Devel

This commit is contained in:
aarne
2007-10-09 12:51:09 +00:00
parent 38a517aafa
commit f93c17c7b1
4 changed files with 91 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ module Main where
import GF.Devel.Compile
import GF.Devel.GrammarToGFCC
import GF.Devel.GFCCtoJS
import GF.GFCC.OptimizeGFCC
import GF.GFCC.CheckGFCC
import GF.GFCC.DataGFCC
@@ -24,6 +25,12 @@ main = do
let target = abs ++ ".gfcc"
writeFile target (printGFCC gc)
putStrLn $ "wrote file " ++ target
if oElem (iOpt "js") opts
then do
let js = abs ++ ".js"
writeFile js (gfcc2js gc)
putStrLn $ "wrote file " ++ js
else return ()
_ -> do
mapM_ (batchCompile opts) (map return fs)
putStrLn "Done."