parse-string(|tbl) succeeds when parsing fails
It returns an error(…) term. Strategy should fails.
Also after an unsuccesful parse, get-parse-error fails.
Test below fails (taken from sglr-tests):
Submitted by Rob Vermaas on 13 May 2011 at 10:31
apply-and-check(!“A parse error must result in a parse error.”
, !“4 +”
, ?error(_, _)
Does this revision also fix the get-parse-error?
get-parse-error still fails.
Strange. It is implemented in
https://svn.strategoxt.org/repos/StrategoXT/strategoxt-java-backend/trunk/java/runtime/org/strategoxt/lang/compat/sglr/STRSGLR_get_parse_error.java, but may not work as the tests were never active before…
Log in to post comments