An NFA-based regex engine with a library and command-line tool.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Aadhavan Srinivasan d210a85253 Updated handling of '\b' when inside character class, made invalid
escapes an error.

The '\b' value refers to a word boundary normally, but refers to the
backspace ASCII value inside a character class. I updated
newEscapedNode() to deal with this. I also changed the behavior, so that
trying to escape any other value results in an error, instead of just
returning the character as-is.
2 weeks ago
.gitignore Added gitignore 3 months ago
Makefile Disable compile-time optimization 3 months ago
compile.go Changed the value of EPSILON, so that we can use the NUL character 2 weeks ago
go.mod Updated go.mod 3 months ago
go.sum Print matched content in color 3 months ago
main.go Renamed function calls to use new names 2 weeks ago
matching.go Updated function names, addeed new function 'FindString' that returns the _text_ of the match 2 weeks ago
misc.go Added function to replace an element in a slice given its value 2 weeks ago
nfa.go Changed the value of EPSILON, so that we can use the NUL character 2 weeks ago
postfixNode.go Updated handling of '\b' when inside character class, made invalid 2 weeks ago
range2regex.go Added function (and helper functions) to generate a regex that matches all numbers in a range 2 months ago
re_test.go Updated tests 2 weeks ago
sliceQueue.go Added 'mustPop' function which panics if slice is empty 3 months ago
stateContents.go Got rid of function that I don't need anymore 3 months ago
todo.txt Updated TODO 4 weeks ago
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) 3 months ago