Added a few match groups like A-Z a-z 0-9, but doesn't do generic match groups [can be improved by special casing - and ensuring that - is passed only as an escaped character]
Supports escaped characters like \ or \+ to mean either literal (\ is redundant) or literal + sign
Supports special regex characters like \w, \d, and \s
Displays characters like \n correctly, and differently from just "n" for instance
And improved build:
In order to live-rebuild with hot reload, run python3 build.py --live
To just build once (i.e. for server deployment), run python3 build.py
Built html and sitemap goes into /build folder and is gitignored (this is the big 3000 minus diff)
Code is a little brittle and there are no tests. There are now two input fields; one for closer-to-raw regex, and one for the fully parsed regex in the expected format. This new visualizer has been deployed (with credit back to this repo) at https://zkregex.com/min_dfa.
I moved all the website HTML to a build/ folder so may or may not work with Github Pages, but it renders perfectly with render.com.
Added some parsing to the grammar:
And improved build:
python3 build.py --live
python3 build.py
/build
folder and is gitignored (this is the big 3000 minus diff)Code is a little brittle and there are no tests. There are now two input fields; one for closer-to-raw regex, and one for the fully parsed regex in the expected format. This new visualizer has been deployed (with credit back to this repo) at https://zkregex.com/min_dfa.
I moved all the website HTML to a build/ folder so may or may not work with Github Pages, but it renders perfectly with render.com.