1
0
forked from GitHub/gf-core

commented LC_LR modification

This commit is contained in:
bringert
2007-03-25 16:34:53 +00:00
parent 4905996816
commit 2091df47fe

View File

@@ -145,6 +145,8 @@ removeLeftRecursion start gr
x <- properLeftCornersOf a,
not (isLeftRecursive x),
let a_x = mkCat (Cat a) x,
-- this is an extension of LC_LR to avoid generating
-- A-X categories for which there are no productions:
a_x `Set.member` newCats,
let n' = symbol (\_ -> CFApp (CFRes 1) (CFRes 0))
(\_ -> CFRes 0) x]