mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 01:32:50 -06:00
Added top-down filtering to the GSL printer.
This commit is contained in:
@@ -33,7 +33,7 @@ import Data.Char (toUpper,toLower)
|
||||
gslPrinter :: Ident -- ^ Grammar name
|
||||
-> Options -> Maybe Probs -> CGrammar -> String
|
||||
gslPrinter name opts probs cfg = prGSL srg ""
|
||||
where srg = makeSimpleSRG name opts probs $ rmPunctCFG cfg
|
||||
where srg = topDownFilter $ makeSimpleSRG name opts probs $ rmPunctCFG cfg
|
||||
|
||||
prGSL :: SRG -> ShowS
|
||||
prGSL (SRG{grammarName=name,startCat=start,origStartCat=origStart,rules=rs})
|
||||
|
||||
Reference in New Issue
Block a user