An NFA-based regex engine with a library and command-line tool.
 
 
 
Go to file
Aadhavan Srinivasan 745fab9639 Clone lookaroundNFA when cloning a state; use compiled regex for
lookarounds instead of compiling a new one
.gitignore Added gitignore
Makefile Disable compile-time optimization
go.mod Updated go.mod
go.sum Print matched content in color
main.go Compile lookaround regex to avoid compiling each time we want to use it
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
misc.go Added angle brackets to list of special characters (which need to be escaped to be used literally
nfa.go Clone lookaroundNFA when cloning a state; use compiled regex for
postfixNode.go Added lookaround-related fields to postfixNode struct
range2regex.go Added function (and helper functions) to generate a regex that matches all numbers in a range
re_test.go Added more test cases
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)