Added top-down filtering to the GSL printer.

This commit is contained in:
bringert
2006-04-13 13:33:35 +00:00
parent 9ed344a70d
commit 4609965d71
3 changed files with 19 additions and 4 deletions

View File

@@ -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})