An NFA-based regex engine with a library and command-line tool.
 
 
 
Go to file
Aadhavan Srinivasan 4376ccb77d Renamed function calls to use new names
.gitignore Added gitignore
Makefile Disable compile-time optimization
compile.go Added 'flags' to the Compile function, instead of maintaining global state to check whether certain features were enabled
go.mod Updated go.mod
go.sum Print matched content in color
main.go Renamed function calls to use new names
matching.go Changed API for match-finding functions - take in a Reg instead of start state and numGroups separately
misc.go Added support for non-capturing groups
nfa.go Fixed bug where I used the 'lookaroundNumCaptureGroups' member of the wrong State struct
postfixNode.go Defined postfixNodes for LPAREN and RPAREN
range2regex.go Added function (and helper functions) to generate a regex that matches all numbers in a range
re_test.go Rewrote to use new API for compiling and finding matches
sliceQueue.go Added 'mustPop' function which panics if slice is empty
stateContents.go Got rid of function that I don't need anymore
todo.txt Updated TODO
unique_array.go Got rid of list for uniq_arr (O(n) deletion) and instead have separate method to create list (O(n) list creation)