Skip to content

benstreb/regex-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages