mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-13 06:49:31 -06:00
Introduced output of stripped format gfcm.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user