Skip to content

About

Generates python files that match a given regex.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Generates a python file "FILE" with a function "matches" that takes in a string and returns true if the regular expression "PATTERN" matches the entire string.

Usage: regex.py PATTERN FILE regex.py --test

Note that this was primarily a learning experience for me, and so the supported subset of regular expressions is extremely limited. Accordingly, and given that the generated code is not at all efficient, this program is not suitable for practical use.

About

Generates python files that match a given regex.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages