some more command options and documentation

This commit is contained in:
aarne
2008-06-14 15:48:52 +00:00
parent f4aeb1554b
commit 096c42540e
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