Skip to content

Containment query and alternative regexps

Alternative patterns for the 3 categories for sel():

  • Old sel() is now renamed to sel_restricted()
  • New sel() deducts the argument types, makes tables of them and calculates a permutation-list of arguments for sub-maches using sel_restricted
  • Result of the sub-matches are unionized on the fly
  • This gives a very good coverage without consuming too much memory, and is fairly fast (fast enough)

Selection contains:

  • It is often valuable to see a short-for of what categories a selection contains as an aid for developing better regexps, especially for the feature above
  • Children of Cref may have other matches, for example tplog will have matchers for format-strings. For those it's imperative to be able to refine sel() maches better, as format-strings are often either reused or very similar spread-out over many source references.
  • Latter is not strictly dependent of CRef. API consistency between children API's and parent classes makes them easire to use. Easy in tunr menas simpler, simpler means better/higher quality (KISS)

Merge request reports

Loading