Some tracing and formatting stuff looking for the the stack overflow problem in the FA generation.

This commit is contained in:
bringert
2005-12-22 18:04:05 +00:00
parent 81aad9adeb
commit 29ba681242
2 changed files with 71 additions and 62 deletions

View File

@@ -34,10 +34,13 @@ import Data.Char (toUpper,toLower)
import Data.List
import Data.Maybe (fromMaybe)
faGraphvizPrinter :: Ident -- ^ Grammar name
-> Options -> CGrammar -> String
faGraphvizPrinter name opts cfg =
prFAGraphviz $ mapStates (const "") $ cfgToFA opts cfg
prFAGraphviz $ mapStates (const "") fa
where fa = cfgToFA opts cfg
-- | Convert the grammar to a regular grammar and print it in BNF