some more command options and documentation

This commit is contained in:
aarne
2008-06-14 15:48:52 +00:00
parent 246f307b22
commit 7a065580d2
3 changed files with 73 additions and 28 deletions

View File

@@ -6,7 +6,8 @@ module GF.Grammar.API (
checkTerm,
computeTerm,
showTerm,
TermPrintStyle(..)
TermPrintStyle(..),
pTermPrintStyle
) where
import GF.Source.ParGF
@@ -65,3 +66,10 @@ showTerm style t =
data TermPrintStyle = TermPrintTable | TermPrintAll | TermPrintUnqual | TermPrintDefault
deriving (Show,Eq)
pTermPrintStyle s = case s of
"table" -> TermPrintTable
"all" -> TermPrintAll
"unqual" -> TermPrintUnqual
_ -> TermPrintDefault