mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06: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:
@@ -62,7 +62,7 @@ cfgToFA opts s = minimize $ compileAutomaton start $ makeSimpleRegular opts s
|
|||||||
where start = getStartCatCF opts s
|
where start = getStartCatCF opts s
|
||||||
|
|
||||||
makeSimpleRegular :: Options -> StateGrammar -> CFRules
|
makeSimpleRegular :: Options -> StateGrammar -> CFRules
|
||||||
makeSimpleRegular opts s = makeRegular $ cfgToCFRules s
|
makeSimpleRegular opts s = makeRegular $ preprocess $ cfgToCFRules s
|
||||||
where start = getStartCatCF opts s
|
where start = getStartCatCF opts s
|
||||||
preprocess = fix (topDownFilter start . bottomUpFilter)
|
preprocess = fix (topDownFilter start . bottomUpFilter)
|
||||||
. removeCycles
|
. removeCycles
|
||||||
|
|||||||
Reference in New Issue
Block a user