1
0
forked from GitHub/gf-core

fix the export for CFG grammars with BIND, SOFT_BIND and nonExist

This commit is contained in:
kr.angelov
2013-11-22 13:36:14 +00:00
parent 4254b101f4
commit c119627dfc

View File

@@ -96,6 +96,10 @@ pgfToCFG pgf lang = mkCFG (showCId (lookStartCat pgf)) extCats (startRules ++ co
---- ++ [t | Alt ss _ <- as, t <- ss]
---- should be alternatives in [[CFSymbol]]
---- AR 3/6/2010
symbolToCFSymbol SymBIND = [Terminal "&+"]
symbolToCFSymbol SymSOFT_BIND = []
symbolToCFSymbol SymNE = []
fixProfile :: Array DotPos Symbol -> Int -> Profile
fixProfile row i = [k | (k,j) <- nts, j == i]
where