forked from GitHub/gf-core
bottom-up and top-down filtering do not need fix point iteration.
This commit is contained in:
@@ -64,7 +64,7 @@ cfgToFA opts s = minimize $ compileAutomaton start $ makeSimpleRegular opts s
|
||||
makeSimpleRegular :: Options -> StateGrammar -> CFRules
|
||||
makeSimpleRegular opts s = makeRegular $ preprocess $ cfgToCFRules s
|
||||
where start = getStartCatCF opts s
|
||||
preprocess = fix (topDownFilter start . bottomUpFilter)
|
||||
preprocess = topDownFilter start . bottomUpFilter
|
||||
. removeCycles
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user