diff options
| author | aarne <unknown> | 2003-12-09 16:39:24 +0000 |
|---|---|---|
| committer | aarne <unknown> | 2003-12-09 16:39:24 +0000 |
| commit | 08c9a2ab8cf7b77a5c0392f5f8e9643e39c89c5b (patch) | |
| tree | 56add96ffe8436f3fe920deb4bc7da320bc19e5d /src/GF/API.hs | |
| parent | 8e637feb793364134d469cb7d1e68605aab2c2ea (diff) | |
Introduced output of stripped format gfcm.
Diffstat (limited to 'src/GF/API.hs')
| -rw-r--r-- | src/GF/API.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/GF/API.hs b/src/GF/API.hs index 29474585f..ab630d7a6 100644 --- a/src/GF/API.hs +++ b/src/GF/API.hs @@ -35,6 +35,7 @@ import qualified Compute as Co import qualified Ident as I import qualified GrammarToCanon as GC import qualified CanonToGrammar as CG +import qualified MkGFC as MC import Editing @@ -113,6 +114,9 @@ transformGrammarFile opts file = do return $ optPrintSyntax opts sy -} +prIdent :: Ident -> String +prIdent = prt + -- then stg for customizable and internal use {- ----- @@ -257,6 +261,9 @@ optPrintGrammar opts = customOrDefault opts grammarPrinter customGrammarPrinter optPrintSyntax :: Options -> GF.Grammar -> String optPrintSyntax opts = customOrDefault opts grammarPrinter customSyntaxPrinter +prCanonGrammar :: CanonGrammar -> String +prCanonGrammar = MC.prCanon + {- ---- optPrintTree :: Options -> GFGrammar -> Tree -> String optPrintTree opts = customOrDefault opts grammarPrinter customTermPrinter |
