From 8bc8929c59d2bd6f28d5dab9c7a9ca8a1c23609e Mon Sep 17 00:00:00 2001 From: krasimir Date: Tue, 16 Jun 2009 11:56:08 +0000 Subject: completely phrase based parser and support for pre {} in PMCFG --- src/PGF/BuildParser.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PGF/BuildParser.hs') diff --git a/src/PGF/BuildParser.hs b/src/PGF/BuildParser.hs index 1603a3dab..23e0725c6 100644 --- a/src/PGF/BuildParser.hs +++ b/src/PGF/BuildParser.hs @@ -35,8 +35,8 @@ data ParserInfoEx getLeftCornerTok pinfo (FFun _ _ lins) | inRange (bounds syms) 0 = case syms ! 0 of - FSymTok (KS tok) -> [tok] - _ -> [] + FSymKS [tok] -> [tok] + _ -> [] | otherwise = [] where syms = (sequences pinfo) ! (lins ! 0) @@ -73,4 +73,4 @@ buildParserInfo pinfo = | (cat,set) <- IntMap.toList (productions pinfo) , (FApply ruleid args) <- Set.toList set , tok <- getLeftCornerTok pinfo ((functions pinfo) ! ruleid) ] - grammartoks = nubsort [t | lin <- elems (sequences pinfo), FSymTok (KS t) <- elems lin] + grammartoks = nubsort [t | lin <- elems (sequences pinfo), FSymKS [t] <- elems lin] -- cgit v1.2.3