Egret
Evil generation of regular expression test string
Install / Use
/learn @elarsonSU/EgretREADME
EGRET
Evil generation of regular expression test strings
Licensing and copying information:
This software is distributed under the GNU General Public License version 3. See the file LICENSE included in this distribution for a copy of this license. If the file is not present, see http://www.gnu.org/licenses/
Dependencies:
EGRET requires Python 3.4 or later (due to using re.fullmatch). Python 2.x versions will not work.
Setup directions:
-
Execute:
cd src -
You may need to modify these Makefile variables:
CXX := g++
PYTHON := python3
EXT_PATH := build/lib.linux-x86_64-3.4
EXT_LIB := egret_ext.cpython-34m.so
The latter two variables refer to the location and name of a library that is created. The library contains C++ code but is used as a Python module. The precise name of the path and library may vary. To find out the name, simply make the project once and then analyze the build subdirectory that is created.
-
Execute:
make -
Execute:
cd .. -
You should see the library (the
egret_ext.cpython-34m.soor similar file) in this directory.
Running:
Simply run python3 egret.py. It will prompt for a regular expression and then generate
test strings.
The script also some command line options. To see a list, execute: python3 egret.py -h
Acknowledgments:
A portion of EGRET was derived from a RE->NFA converter developed by Eli Bendersky.
Contact Information:
Eric Larson elarson@seattleu.edu
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
