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 11f7f1d746 Added fields to state, to determine capturing group information. 0th group refers to entire match 2 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 Added initial support for capturing groups 2 weeks 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 4 weeks ago
misc.go Added angle brackets to list of special characters (which need to be escaped to be used literally 4 weeks ago
nfa.go Added fields to state, to determine capturing group information. 0th group refers to entire match 2 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