You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is some testing. Omitting the first Element and then
repeatedly sep with Element doesn't work, thats why the last
test case fails. So it must have another specification:
?- phrase(foo(L), [i]).
L = [i].
?- phrase(foo(L), []).
L = [].
?- phrase(foo(L), [i,',',i]).
L = [i, i].
?- phrase(foo(L), [',',i]).
false.
While trying to do protobuf syntax with library(dcg/high_order))
it seems there is small glitch in the docu. It says here:
https://www.swi-prolog.org/pldoc/doc_for?object=sequence//3
But what it actually does is this here:
Here is some testing. Omitting the first Element and then
repeatedly sep with Element doesn't work, thats why the last
test case fails. So it must have another specification:
The test code was:
The text was updated successfully, but these errors were encountered: