-
I haven't found any information on where curly brace blocks should be placed inside DCG rules. For example, in the following code, the curly brace block sets a variable that is used before the block and another that is used after the block. Is the order irrelevant or are there cases where it matters? :- use_module(library(dcgs)).
sample(S) -->
seq(First),
{
First = "one",
Second = "two",
S = "three"
},
seq(Second). I can test this by entering |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
See my previous comment on failure slices. It answered your question about the order. |
Beta Was this translation helpful? Give feedback.
See my previous comment on failure slices. It answered your question about the order.