-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels
enhancementNew feature or requestNew feature or requestsyntaxConcerning the Melody language syntaxConcerning the Melody language syntax
Description
Imagine something like this:
some of <word>;
<space>;
capture {
1 to 9;
2 of <digit>;
}
should match "Econ 101" capturing "101";
should not match "305";
should not match "Physics 022"
If you have the ability to embed tiny unit tests in your regex declaration, then this could substantially help both to catch regressions and to document the intent behind the regex. The unit tests would be run at compile time, raising something akin to a syntax error if they fail (with clear output as to why they failed, to make it easier to fix).
arsel-5lvxa7b1, joshgrift, zzzgydi, yoav-lavi, MrGreenTea and 9 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestsyntaxConcerning the Melody language syntaxConcerning the Melody language syntax