1
0
forked from GitHub/gf-core

bottom-up and top-down filtering do not need fix point iteration.

This commit is contained in:
bringert
2007-06-27 17:46:34 +00:00
parent af36dcf13d
commit af45f33d51
3 changed files with 5 additions and 6 deletions

View File

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