git @ Cat's Eye Technologies Fountain / 5e8cf43
Dump the info more nicely in extractloops subcommand. Chris Pressey 1 year, 2 months ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6060 ["extractloops", grammarFileName] -> do
6161 grammar <- loadSource grammarFileName
6262 let expr = Grammar.productionExpr (Grammar.startSymbol grammar) grammar
63 let r = Preprocessor.extractLoops expr
64 output $ show r
63 let (expr', (_count, constraints)) = Preprocessor.extractLoops expr
64 putStrLn (Grammar.depictExpr expr')
65 let constraints' = map (fst) constraints
66 putStrLn (Grammar.depictExprs constraints')
6567 ("parse":grammarFileName:textFileName:initialParams) -> do
6668 grammar <- loadSource grammarFileName
6769 let grammar' = Preprocessor.preprocessGrammarForParsing grammar