1
0
forked from GitHub/gf-core

update testsuite/runtime/parser/Parse.hs

This commit is contained in:
krasimir
2009-11-02 16:31:32 +00:00
parent fa187d2c30
commit 5b3eef5c1b

View File

@@ -35,9 +35,9 @@ doTest pgf lang cat ss t = do
doParse st t1 ts [] = return (Just (st,reverse ts))
doParse st t1 ts (tk:tks) = do
case nextState st tk of
Nothing -> return Nothing
Just st -> do t2 <- getCPUTime
doParse st t1 ((t2-t1):ts) tks
Left _ -> return Nothing
Right st -> do t2 <- getCPUTime
doParse st t1 ((t2-t1):ts) tks
accum [] ss = ss
accum (t:ts) [] = (t,1) : accum ts []