Skip to content

Calculate a feature vector #2

@davisjam

Description

@davisjam

This is a great library. Thank you for sharing it.

I am interested in collecting a Chapman&Stolee feature vector from a regex.
(cf. Table 4 in Exploring Regular Expression Usage and Context in Python, ISSTA'16.)

It did not appear to me that this was currently possible. I looked into walking the RegexTree produced by RegexParser, but for example it collapses quantifiers like *, +, and {m,n} into the same type of RegexNode.

I have modified RegexParser.cs to collect a feature vector during ScanRegex. Would a PR be of interest?

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