mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-11 04:02:52 -06:00
bottom-up and top-down filtering do not need fix point iteration.
This commit is contained in:
@@ -109,7 +109,6 @@ bottomUpFilter gr = fix grow Map.empty
|
||||
okSym g = symbol (`elem` allCats g) (const True)
|
||||
|
||||
-- | Removes categories which are not reachable from the start category.
|
||||
-- Only does one pass through the grammar.
|
||||
topDownFilter :: Cat_ -> CFRules -> CFRules
|
||||
topDownFilter start rules = filterCFRulesCats (isRelatedTo uses start) rules
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user