Commit Graph

461 Commits (1d32865e767482eadaf8eb22e918b0ae41dbd9d3)
 

Author SHA1 Message Date
Aadhavan Srinivasan 1d32865e76 Added extra check if fileContainsNullChar returns err; pass filename to it instead of file 1 day ago
Aadhavan Srinivasan 66f4ca31d1 Use filename instead of file handler to scan file for null byte 1 day ago
Aadhavan Srinivasan d81c72590a Updated gitignore to contain new executable name 3 days ago
Aadhavan Srinivasan 83632f2abc Don't compile the regex if no valid files were given (eg. all files are directories); print error if file is a binary file (contains NULL character) 3 days ago
Aadhavan Srinivasan fc0af1ccc5 Updated README 3 weeks ago
Aadhavan Srinivasan 980fb77114 Makefile changes 3 weeks ago
Aadhavan Srinivasan 4c4d747a9c Renamed 'cmd' to 'kg' so that go install works correctly 3 weeks ago
Aadhavan Srinivasan 595b86df60 Added comment to function 4 weeks ago
Aadhavan Srinivasan 5f9bab528a Don't quit if a file is not found, continue with any other files that are found 1 month ago
Aadhavan Srinivasan 530564b920 Print error if input file is a directory; print program name before error string 1 month ago
Aadhavan Srinivasan 02b3b469c4 Added support for line num flag 1 month ago
Aadhavan Srinivasan e489dc4c27 Started working on line number flag 1 month ago
Aadhavan Srinivasan 34149980a4 Started working on multiple filename arguments; prefix each line with filename containing the line; mostly indentation changes 1 month ago
Aadhavan Srinivasan e79c19a929 Updated TODO 1 month ago
Aadhavan Srinivasan d2bce37935 Updated argument count validation 1 month ago
Aadhavan Srinivasan bb3b866b77 Started working on file arguments - stdin is used if arg is "-" 1 month ago
Aadhavan Srinivasan e07f27dc78 Merge branch 'master' of https://gitea.twomorecents.org/Rockingcool/kleingrep 2 months ago
Aadhavan Srinivasan 65d2317f79 Added more backreference tests 2 months ago
Aadhavan Srinivasan a631fc289c Clone 'isBackreference' and 'referredGroup' NFA fields, because they aren't thread variables 2 months ago
Aadhavan Srinivasan d62a429cce Updated documentation 2 months ago
Aadhavan Srinivasan 7b31031553 Change when a newline is printed; so that we don't print extraneous newlinesraneous newlines 2 months ago
Aadhavan Srinivasan 38c842cb07 Added method to get length of unique array 2 months ago
Aadhavan Srinivasan 9f9af36be8 Fixed bug where escaped parentheses in lookarounds were counted as regular parentheses instead of literals 2 months ago
Aadhavan Srinivasan 8217b67122 Added test for escaped parentheses in lookarounds 2 months ago
Aadhavan Srinivasan 1f06dcef64 Just declare the variable instead of initializing it as well 2 months ago
Aadhavan Srinivasan 119475b41b Updated README 2 months ago
Aadhavan Srinivasan 6151cc8cf6 Updated documentation 2 months ago
Aadhavan Srinivasan 3eaf4eb19c Updated README 2 months ago
Aadhavan Srinivasan d453815831 Added README 2 months ago
Aadhavan Srinivasan 3a2916baae Set 'isLazy' to true in the NFA, if the postfixNode has the flag set 2 months ago
Aadhavan Srinivasan 9d6344719f Reverse order of trying branches if the quantifier is lazy 2 months ago
Aadhavan Srinivasan f5c868566b Added field to NFA, denoting if a node is lazy or not 2 months ago
Aadhavan Srinivasan 1cd6da218f Added lazy quantifier tests 2 months ago
Aadhavan Srinivasan 277cbc0fc5 Started working on lazy quantifier support 2 months ago
Aadhavan Srinivasan 3924502b72 Added code to return lazy quantifier postfixNodes 2 months ago
Aadhavan Srinivasan 36b009747b Added metacharacters for lazy quantifiers 2 months ago
Aadhavan Srinivasan 6cd0a10a8f Added more documentation 2 months ago
Aadhavan Srinivasan 69fb96c43d Merge pull request 'Implement Unicode character classes' (#4) from implementUnicodeCharClass into master
Reviewed-on: #4
2 months ago
Aadhavan Srinivasan 46bc0c8529 Removed unicode character classes from 'features not supported' list 2 months ago
Aadhavan Srinivasan 1a890a1e75 Refactoring - remove duplicate code 2 months ago
Aadhavan Srinivasan fde3784e5a Added unicode charclass support within character classes; Fixed bugs with hex classes and unicode classes 2 months ago
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 2 months ago
Aadhavan Srinivasan d4d606d95b Added tests for unicode character classes; more tests for hex characters 2 months ago
Aadhavan Srinivasan 9cd330e521 More work on unicode character class support - fix bug where all characters aren't being matched 2 months ago
Aadhavan Srinivasan 44d6a2005c Started working on unicode character classes 2 months ago
Aadhavan Srinivasan f76cd6c3d9 Merge pull request 'Implement Backreferences' (#3) from implementBackreferences into master
Reviewed-on: #3
2 months ago
Aadhavan Srinivasan 375baa1722 Wrote more backreference tests 2 months ago
Aadhavan Srinivasan 2e47c631bb Updated documentation to include backreferences 2 months ago
Aadhavan Srinivasan 81b8b1b11c Do not validate a backreference if the group that it refers to is not valid 2 months ago
Aadhavan Srinivasan 2934e7a20f Wrote tests for backreferences 2 months ago