mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 17:12:50 -06:00
Added makeSRG.
This commit is contained in:
@@ -63,7 +63,7 @@ cfgToFA opts s = minimize $ compileAutomaton start $ makeSimpleRegular opts s
|
||||
where start = getStartCatCF opts s
|
||||
|
||||
makeSimpleRegular :: Options -> StateGrammar -> CFRules
|
||||
makeSimpleRegular opts s = makeRegular $ preprocess $ cfgToCFRules s
|
||||
makeSimpleRegular opts s = makeRegular $ cfgToCFRules s
|
||||
where start = getStartCatCF opts s
|
||||
preprocess = fix (topDownFilter start . bottomUpFilter)
|
||||
. removeCycles
|
||||
|
||||
Reference in New Issue
Block a user