print line numbers to trace the location of parsing errors

This commit is contained in:
Mark Thom
2019-09-17 22:50:32 -06:00
parent 9d2ac9e235
commit 40500ca2d6
4 changed files with 43 additions and 31 deletions

View File

@@ -2273,10 +2273,6 @@ fn test_queries_on_string_lists()
Y = \"defghijkl\".",
[["X = [a,b,c,d,e,f,g,h,i,j,k,l]",
"Y = [d,e,f,g,h,i,j,k,l]"]]);
assert_prolog_success!(&mut wam, "partial_string(\"abc\", X), matcher(X, Y), partial_string(\"def\", Y),
\"defghijkl\" = Y.",
[["X = [a,b,c,d,e,f,g,h,i,j,k,l]",
"Y = [d,e,f,g,h,i,j,k,l]"]]);
assert_prolog_success!(&mut wam, "partial_string(\"abc\", X), matcher(X, Y), Y = [d, e, f | G].",
[["X = [a,b,c,d,e,f|_]","Y = [d,e,f|_]","G = _"]]);