Mappings from tag classes that include directions
always map from the rule's direction
#52
Labels
bug
Something isn't working
expansion
any expansion mechanism
mappings
Anything that concerns mappings
syntax/language
Concerns the language or its syntax
Milestone
In the following code,
Pos
is a tag class addingtop
andbottom
todirections
and there is a mappingRotUp
fromPos
toPos
. However, in the first rule, even ifPos
is a tag class rule parameter and the rule is non-directional, the mappingRotUp
is applied on the rule direction rather than on the value of the parameterPos
as it should.The expansion of the first rule is:
Workaround:
It's possible to avoid the issue by renaming the tags in
Pos
so that they have different names than those indirections
. It would work fine in that example, but of course it would not work in the case where some rules would need to map on the rule's direction.See also #43, possibly related.
Thanks to knexator for reporting the bug.
The text was updated successfully, but these errors were encountered: