mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 19:25:27 -07:00
Oops, I had managed to remove the preprocessing step in makeSimpleRegular, which broke SLF and non-rec SRGS generation for grammars which need bottom-up filtering.
This commit is contained in:
1 parent
3371605af0
commit
88653403fc
1 file changed
+1
-1
@@ -62,7 +62,7 @@ cfgToFA opts s = minimize $ compileAutomaton start $ makeSimpleRegular opts s
|
||||
where start = getStartCatCF opts s
|
||||
|
||||
makeSimpleRegular :: Options -> StateGrammar -> CFRules
|
||||
makeSimpleRegular opts s = makeRegular $ cfgToCFRules s
|
||||
makeSimpleRegular opts s = makeRegular $ preprocess $ cfgToCFRules s
|
||||
where start = getStartCatCF opts s
|
||||
preprocess = fix (topDownFilter start . bottomUpFilter)
|
||||
. removeCycles
|
||||
|
||||
Reference in new issue
Block a user