diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-12-19 14:28:58 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-12-19 14:28:58 +0000 |
| commit | f7dfc6f1d7298ca5fd5aa63dddcdcb196ead251f (patch) | |
| tree | 6d4ac6dd6026e72672686a02df57d3e2deb64100 /src/GFI.hs | |
| parent | f9e9c582f3cbfde308bad71d1303a38082189e02 (diff) | |
command dg for showing source grammar dep graph restored
Diffstat (limited to 'src/GFI.hs')
| -rw-r--r-- | src/GFI.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/GFI.hs b/src/GFI.hs index cbc9b5e84..748fcfe55 100644 --- a/src/GFI.hs +++ b/src/GFI.hs @@ -8,6 +8,7 @@ import GF.Command.Abstract import GF.Command.Parse import GF.Data.ErrM import GF.Grammar.API -- for cc command +import GF.Infra.Dependencies import GF.Infra.UseIO import GF.Infra.Option import GF.System.Readline @@ -101,6 +102,10 @@ loop opts gfenv0 = do Ok x -> putStrLn $ enc (showTerm style x) Bad s -> putStrLn $ enc s loopNewCPU gfenv + "dg":ws -> do + writeFile "_gfdepgraph.dot" (depGraph sgr) + putStrLn "wrote graph in file _gfdepgraph.dot" + loopNewCPU gfenv "i":args -> do gfenv' <- case parseOptions args of Ok (opts',files) -> |
