Cannot traverse the same AST node twice
In the constraint rule:
[[ d@Def(Pub(), _, _) ^ (s_pub, s_prv) ]] := Def [[ d ^ (s_pub, s_prv, s_pub) ]]
Submitted by Gabriël Konat on 27 January 2017 at 12:37
d
is being traversed over twice, and this is not yet supported by the constraint generator. The result is that the named constraint ruleDef
is never executed, while I expect it to be executed.
Issue Log
On 30 January 2017 at 17:31 Hendrik van Antwerpen commented:
There are no plans to support this, because multiple traversals have problems with associating meta-data to AST nodes. There is an idea to allow split rule definitions, that are merged later. However, these split rules should still result in a single traversal, so I’m closing this issue.
On 30 January 2017 at 17:31 Hendrik van Antwerpen closed this issue.
Log in to post comments