From 15d014abb825837f0fd7c9e17d5907001135faaf Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Wed, 6 Sep 2017 12:38:42 +0200 Subject: the parser in the C runtime can now detect incomplete sentences just like the parser in the Haskell runtime. This is also reflected in all bindings. --- doc/runtime-api.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/runtime-api.html b/doc/runtime-api.html index 966f5f15c..792dbed39 100644 --- a/doc/runtime-api.html +++ b/doc/runtime-api.html @@ -154,12 +154,12 @@ or by calling __next__ if you are using Python 3: -This gives you a result of type Either String [(Expr, Float)]. -If the result is Left then the parser has failed and you will -get the token where the parser got stuck. If the parsing was successful -then you get a potentially infinite list of parse results: +This gives you a result of type ParseOutput. +If the result is ParseFailed then the parser has failed and you will +get the offset and the token where the parser got stuck. If the parsing was successful +then you get ParseOk with a potentially infinite list of parse results:
-Prelude PGF2> let Right ((e,p):rest) = res
+Prelude PGF2> let ParseOk ((e,p):rest) = res
 
-- cgit v1.2.3