mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-11 04:02:52 -06:00
Added srgs_abnf_non_rec.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
-- FIXME: convert to UTF-8
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
module GF.Speech.PrSRGS_ABNF (srgsAbnfPrinter) where
|
||||
module GF.Speech.PrSRGS_ABNF (srgsAbnfPrinter, srgsAbnfNonRecursivePrinter) where
|
||||
|
||||
import GF.Conversion.Types
|
||||
import GF.Data.Utilities
|
||||
@@ -46,6 +46,9 @@ srgsAbnfPrinter :: Maybe SISRFormat
|
||||
-> StateGrammar -> String
|
||||
srgsAbnfPrinter sisr probs opts s = show $ prABNF sisr probs $ makeSimpleSRG opts s
|
||||
|
||||
srgsAbnfNonRecursivePrinter :: Options -> StateGrammar -> String
|
||||
srgsAbnfNonRecursivePrinter opts s = show $ prABNF Nothing False $ makeNonRecursiveSRG opts s
|
||||
|
||||
prABNF :: Maybe SISRFormat -> Bool -> SRG -> Doc
|
||||
prABNF sisr probs srg@(SRG{grammarName=name,grammarLanguage=ml,
|
||||
startCat=start,origStartCat=origStart,rules=rs})
|
||||
|
||||
Reference in New Issue
Block a user