mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
commented LC_LR modification
This commit is contained in:
@@ -145,6 +145,8 @@ removeLeftRecursion start gr
|
|||||||
x <- properLeftCornersOf a,
|
x <- properLeftCornersOf a,
|
||||||
not (isLeftRecursive x),
|
not (isLeftRecursive x),
|
||||||
let a_x = mkCat (Cat a) 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,
|
a_x `Set.member` newCats,
|
||||||
let n' = symbol (\_ -> CFApp (CFRes 1) (CFRes 0))
|
let n' = symbol (\_ -> CFApp (CFRes 1) (CFRes 0))
|
||||||
(\_ -> CFRes 0) x]
|
(\_ -> CFRes 0) x]
|
||||||
|
|||||||
Reference in New Issue
Block a user