Skip to content

MatcherDebug: unfinished yet #22

@alesshosry

Description

@alesshosry

This is a class that was supposed to help the developers to debug pattern matching with MoTion.
The concept is discussed but never implemented; Ideas:

  • for composed patterns like ClassName % { #property <=> value. #property2 <=> value2. }, the debugging could be by commenting parts of the properties and try to execute the match. if it passes then the error could be in the commented part and thus the debugger can highlight this part to inform the user.
  • also since wildcards exist, could be by replacing the value with wildcard and try to execute the match. if it passes then the error could be in the value set and thus the debugger can highlight this part to inform the user.
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions