Skip to content

Tag mappings in rules work when there is no corresponding tag expansion #31

@ClementSparrow

Description

@ClementSparrow

With a mapping defined like that:

TAGS

Tg = A B

MAPPINGS

Tg => Mp
A B -> B A

OBJECTS

Obj:Tg
blue

It's possible to write a rule like that:

[ > Obj:Tg ] -> [ > Obj:Mp ]

And it will be interpreted as:

[ > Obj:Tg ] -> [ > Obj:Tg ]

While this is an interesting feature I think this kind of rule more likely reflects a problem with the mapping – either a mapping parameter that is missing in the rule or the use of a wrong mapping with a start set that is not one of the rule parameters – and should thus trigger an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconsole messagesContent and presentation of compilation errors/warnings and other console messagesexpansionany expansion mechanismmappingsAnything that concerns mappingssyntax/languageConcerns the language or its syntax

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions