summaryrefslogtreecommitdiff
path: root/src/PGF/BuildParser.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2009-06-16 11:56:08 +0000
committerkrasimir <krasimir@chalmers.se>2009-06-16 11:56:08 +0000
commit8bc8929c59d2bd6f28d5dab9c7a9ca8a1c23609e (patch)
tree84244e9cc3b969e86167b309538dfe08d7374630 /src/PGF/BuildParser.hs
parentb442cde3bd01fb935c215446097592510cf8e713 (diff)
completely phrase based parser and support for pre {} in PMCFG
Diffstat (limited to 'src/PGF/BuildParser.hs')
-rw-r--r--src/PGF/BuildParser.hs6
1 files changed, 3 insertions, 3 deletions
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]