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 e36310b32d Added function (and helper functions) to generate a regex that matches all numbers in a range 4 weeks ago
.gitignore Added gitignore 2 months ago
Makefile Disable compile-time optimization 2 months ago
go.mod Updated go.mod 2 months ago
go.sum Print matched content in color 2 months ago
main.go Fixed bug with parentheses in lookaround regex; fixed bug with reading last line of test string (if it doesn't end in a newline) 4 weeks ago
matching.go Fixed bug with lookaheads: f(?=f) would not match anything in 'ffa', because of the 'a' at the end of the string. Fixed by checking if there are other last states when an assertion fails, rather than immediately aborting 4 weeks ago
misc.go Added function to generate all case variations of a rune 4 weeks ago
nfa.go Added function to determine if a state is a lookaround 4 weeks ago
postfixNode.go Added lookaround-related fields to postfixNode struct 1 month ago
range2regex.go Added function (and helper functions) to generate a regex that matches all numbers in a range 4 weeks ago
re_test.go Added more test cases 4 weeks ago
sliceQueue.go Added 'mustPop' function which panics if slice is empty 2 months ago
stateContents.go Got rid of function that I don't need anymore 2 months ago
todo.txt Updated TODO 1 month 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) 2 months ago