Commit Graph

448 Commits (e79c19a929251e2d13137652b99849ab64e311d8)
 

Author SHA1 Message Date
Aadhavan Srinivasan e79c19a929 Updated TODO
Aadhavan Srinivasan d2bce37935 Updated argument count validation
Aadhavan Srinivasan bb3b866b77 Started working on file arguments - stdin is used if arg is "-"
Aadhavan Srinivasan e07f27dc78 Merge branch 'master' of https://gitea.twomorecents.org/Rockingcool/kleingrep
Aadhavan Srinivasan 65d2317f79 Added more backreference tests
Aadhavan Srinivasan a631fc289c Clone 'isBackreference' and 'referredGroup' NFA fields, because they aren't thread variables
Aadhavan Srinivasan d62a429cce Updated documentation
Aadhavan Srinivasan 7b31031553 Change when a newline is printed; so that we don't print extraneous newlinesraneous newlines
Aadhavan Srinivasan 38c842cb07 Added method to get length of unique array
Aadhavan Srinivasan 9f9af36be8 Fixed bug where escaped parentheses in lookarounds were counted as regular parentheses instead of literals
Aadhavan Srinivasan 8217b67122 Added test for escaped parentheses in lookarounds
Aadhavan Srinivasan 1f06dcef64 Just declare the variable instead of initializing it as well
Aadhavan Srinivasan 119475b41b Updated README
Aadhavan Srinivasan 6151cc8cf6 Updated documentation
Aadhavan Srinivasan 3eaf4eb19c Updated README
Aadhavan Srinivasan d453815831 Added README
Aadhavan Srinivasan 3a2916baae Set 'isLazy' to true in the NFA, if the postfixNode has the flag set
Aadhavan Srinivasan 9d6344719f Reverse order of trying branches if the quantifier is lazy
Aadhavan Srinivasan f5c868566b Added field to NFA, denoting if a node is lazy or not
Aadhavan Srinivasan 1cd6da218f Added lazy quantifier tests
Aadhavan Srinivasan 277cbc0fc5 Started working on lazy quantifier support
Aadhavan Srinivasan 3924502b72 Added code to return lazy quantifier postfixNodes
Aadhavan Srinivasan 36b009747b Added metacharacters for lazy quantifiers
Aadhavan Srinivasan 6cd0a10a8f Added more documentation
Aadhavan Srinivasan 69fb96c43d Merge pull request 'Implement Unicode character classes' () from implementUnicodeCharClass into master
Reviewed-on: 
Aadhavan Srinivasan 46bc0c8529 Removed unicode character classes from 'features not supported' list
Aadhavan Srinivasan 1a890a1e75 Refactoring - remove duplicate code
Aadhavan Srinivasan fde3784e5a Added unicode charclass support within character classes; Fixed bugs with hex classes and unicode classes
Aadhavan Srinivasan 7045711860 Convert test_str into a rune slice for better unicode compatibility, it also fixed the bug where all unicode characters wouldn't be colored
Aadhavan Srinivasan d4d606d95b Added tests for unicode character classes; more tests for hex characters
Aadhavan Srinivasan 9cd330e521 More work on unicode character class support - fix bug where all characters aren't being matched
Aadhavan Srinivasan 44d6a2005c Started working on unicode character classes
Aadhavan Srinivasan f76cd6c3d9 Merge pull request 'Implement Backreferences' () from implementBackreferences into master
Reviewed-on: 
Aadhavan Srinivasan 375baa1722 Wrote more backreference tests
Aadhavan Srinivasan 2e47c631bb Updated documentation to include backreferences
Aadhavan Srinivasan 81b8b1b11c Do not validate a backreference if the group that it refers to is not valid
Aadhavan Srinivasan 2934e7a20f Wrote tests for backreferences
Aadhavan Srinivasan f466d4a8d5 More progress on backreference implementation
Aadhavan Srinivasan 8327450dd2 Started implementing backreferences (octal values should now be prefaced with \0)
Aadhavan Srinivasan 073f231b89 Added function and examples for ReplaceAllFunc()
Aadhavan Srinivasan 3b7257c921 Wrote function and example for ReplaceAllLiteral()
Aadhavan Srinivasan 668df8b70a Wrote MarshalText() and UnmarshalText() to implement TextMarshaler and TextUnmarshaler
Aadhavan Srinivasan 214acf7e0f Wrote example for ReplaceAll(); fixed out-of-bounds bug in Expand()
Aadhavan Srinivasan 50221ff4d9 Wrote ReplaceAll(), to replace all matches of the regex with a given string
Aadhavan Srinivasan 5ab95f512a Updated docs
Aadhavan Srinivasan e7da678408 Removed obsolete documentation
Aadhavan Srinivasan ab363e2766 Rewrote test for 'FindString()' to use lookarounds
Aadhavan Srinivasan c803e45415 Added example for 'FindStringSubmatch()'
Aadhavan Srinivasan 525296f239 Added examples for 'FindAllString()' , 'FindAllSubmatch()' and 'FindAllStringSubmatch()'
Aadhavan Srinivasan eb0ab9f7ec Wrote test for FindAllStringSubmatch()