SRG conversion: print CFG when a unknown cat is found in renameCats. Do filtering in ebnf printer.

This commit is contained in:
bjorn
2008-09-30 09:32:16 +00:00
parent 8716e48c21
commit 41c95825f3
5 changed files with 17 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ width :: Int
width = 75
gslPrinter :: PGF -> CId -> String
gslPrinter pgf cnc = renderStyle st $ prGSL $ makeSimpleSRG pgf cnc
gslPrinter pgf cnc = renderStyle st $ prGSL $ makeNonLeftRecursiveSRG pgf cnc
where st = style { lineLength = width }
prGSL :: SRG -> Doc