mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-08-19 10:46:22 -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:
|
||||
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)))
|
||||
ParseFailed _ tok -> return (Left tok)
|
||||
ParseIncomplete -> return (Left "")
|
||||
|
||||
Reference in New Issue
Block a user