mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
fix the export for CFG grammars with BIND, SOFT_BIND and nonExist
This commit is contained in:
@@ -96,6 +96,10 @@ pgfToCFG pgf lang = mkCFG (showCId (lookStartCat pgf)) extCats (startRules ++ co
|
|||||||
---- ++ [t | Alt ss _ <- as, t <- ss]
|
---- ++ [t | Alt ss _ <- as, t <- ss]
|
||||||
---- should be alternatives in [[CFSymbol]]
|
---- should be alternatives in [[CFSymbol]]
|
||||||
---- AR 3/6/2010
|
---- AR 3/6/2010
|
||||||
|
symbolToCFSymbol SymBIND = [Terminal "&+"]
|
||||||
|
symbolToCFSymbol SymSOFT_BIND = []
|
||||||
|
symbolToCFSymbol SymNE = []
|
||||||
|
|
||||||
fixProfile :: Array DotPos Symbol -> Int -> Profile
|
fixProfile :: Array DotPos Symbol -> Int -> Profile
|
||||||
fixProfile row i = [k | (k,j) <- nts, j == i]
|
fixProfile row i = [k | (k,j) <- nts, j == i]
|
||||||
where
|
where
|
||||||
|
|||||||
Reference in New Issue
Block a user