mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 01:32:50 -06:00
Look at both command-line and grammar startcat falgs in pg commands.
This commit is contained in:
@@ -31,9 +31,10 @@ import GF.Probabilistic.Probabilistic (Probs)
|
||||
import Data.Char (toUpper,toLower)
|
||||
|
||||
gslPrinter :: Ident -- ^ Grammar name
|
||||
-> String -- ^ Start category
|
||||
-> Options -> Maybe Probs -> CGrammar -> String
|
||||
gslPrinter name opts probs cfg = prGSL srg ""
|
||||
where srg = topDownFilter $ makeSimpleSRG name opts probs $ rmPunctCFG cfg
|
||||
gslPrinter name start opts probs cfg = prGSL srg ""
|
||||
where srg = topDownFilter $ makeSimpleSRG name start opts probs $ rmPunctCFG cfg
|
||||
|
||||
prGSL :: SRG -> ShowS
|
||||
prGSL (SRG{grammarName=name,startCat=start,origStartCat=origStart,rules=rs})
|
||||
|
||||
Reference in New Issue
Block a user