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.
 
 
 
Go to file
Aadhavan Srinivasan cbd6ea136b If the NFA starts with an assertion, make sure it's true before doing anything else. Also, check for last-state _lookaround_ rather than just last state, before breaking (instead of aborting) when the assertion fails 3 months ago
.gitignore Added gitignore 5 months ago
Makefile Disable compile-time optimization 5 months ago
go.mod Updated go.mod 4 months ago
go.sum Print matched content in color 5 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 months ago
matching.go If the NFA starts with an assertion, make sure it's true before doing anything else. Also, check for last-state _lookaround_ rather than just last state, before breaking (instead of aborting) when the assertion fails 3 months ago
misc.go Added angle brackets to list of special characters (which need to be escaped to be used literally 3 months ago
nfa.go Accounted for last character being a newline when checking for EOS (we can be at the second-last character if the last one is a newline 3 months ago
postfixNode.go Added lookaround-related fields to postfixNode struct 4 months ago
range2regex.go Added function (and helper functions) to generate a regex that matches all numbers in a range 3 months ago
re_test.go Added more test cases 3 months ago
sliceQueue.go Added 'mustPop' function which panics if slice is empty 4 months ago
stateContents.go Got rid of function that I don't need anymore 4 months ago
todo.txt Updated TODO 4 months 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) 4 months ago