The ForbiddenSequence constraint forbids a sequence of rules in a vertical path. However, most grammars have a different notion of a 'sequence'. For example, the sequence of operations in the robot grammar do not lie on a path.
To forbid the sequence [right, left], we either need to:
rewrite the grammar.
change the semantics of ForbiddenSequence.
make a new forbidden sequence constraints for a different kind of sequence.
The
ForbiddenSequence
constraint forbids a sequence of rules in a vertical path. However, most grammars have a different notion of a 'sequence'. For example, the sequence of operations in the robot grammar do not lie on a path.To forbid the sequence [right, left], we either need to:
ForbiddenSequence
.