mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-16 07:16:02 -06:00
fix the parsing api
This commit is contained in:
@@ -144,7 +144,7 @@ pgfCommand qsem command q (t,pgf) =
|
|||||||
|
|
||||||
-- Without caching parse results:
|
-- Without caching parse results:
|
||||||
parse' cat start mlimit ((from,concr),input) =
|
parse' cat start mlimit ((from,concr),input) =
|
||||||
case PGF2.parse concr cat (init input) of
|
case PGF2.parse concr cat input of
|
||||||
ParseOk ts -> return (Right (maybe id take mlimit (drop start ts)))
|
ParseOk ts -> return (Right (maybe id take mlimit (drop start ts)))
|
||||||
ParseFailed _ tok -> return (Left tok)
|
ParseFailed _ tok -> return (Left tok)
|
||||||
ParseIncomplete -> return (Left "")
|
ParseIncomplete -> return (Left "")
|
||||||
|
|||||||
Reference in New Issue
Block a user