mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
some more command options and documentation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user