Aadhavan Srinivasan Rockingcool
  • Joined on 2022-10-09
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 16:52:04 -06:00
00570f07fe Wrote documentation on syntax
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 14:08:31 -06:00
7431b1a7b2 Changed \Z to \z to fit with Go's naming
ee51e39d59 Added support for start-of-input (\A) and end-of-input (\Z) assertions
db7c884b83 Added test for start-of-input and end-of-input assertion
c3059fe899 Return a new error instead of rethrowing a non-existent error
4f577592ba Added rule to run tests
Compare 12 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 09:49:09 -06:00
57eb935bd1 Updated comment
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 09:47:47 -06:00
cbd679949f Updated more referencs to constants
a63426d965 Updated references to constants
Compare 2 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 09:45:22 -06:00
2e3450285c Renamed one more variable to avoid exporting
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 09:44:41 -06:00
7e792f1248 Renamed more constants to avoid exporting
b8f5b9af7c Updated one more reference to epsilon
be60f2fb51 Updated references to 'epsilon'
Compare 3 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 09:37:00 -06:00
7aee4280cc Renamed 'EPSILON' to 'epsilon' to avoid exporting
e01ef48cbc Updated CONCAT to be a metacharacter instead of just a tilde, and renamed it to avoid exporting
93474c5159 Renamed 'state' to 'nfaState' because 'state' by itself means nothing
d81b2ddaaa Renamed 'State' to 'state' to avoid exposing the insides of the engine
429d286439 Renamed variable to avoid conflicting with type name
Compare 11 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 09:03:08 -06:00
ca8f8e1030 Renamed function
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 08:52:10 -06:00
24a5045ebe Updated map and reduce function names so that they aren't exported
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 08:22:42 -06:00
f6d56b74e1 Updated module name to 'kleingrep' (Let's goo!)
Rockingcool renamed repository from regex to Rockingcool/kleingrep 2025-01-30 08:20:29 -06:00
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 08:15:53 -06:00
dc53951408 Update package name in import
aef8152fc1 Renamed package 'greg' to 'regex'
Compare 2 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-30 08:09:56 -06:00
ca8d32cd7f Added more tests
368941e5c7 Fix out-of-bounds access in genRangeInclusive
b9da5ec08d Replace use of 'genRange' with 'genRangeInclusive'
c5a43c47f0 Update type and method references to use qualified names
c3c3829ac9 Move 'genRange' function to 'cmd'
Compare 8 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-29 13:45:33 -06:00
54df6f1815 Added numeric range tests
bd424ceccd Catch error from range2regex() and return it
e8e09dd0f9 Throw error instead of panicking
46f4a2ad83 Return error instead of panicking if the range cannot be processed
Compare 4 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-29 09:29:01 -06:00
833dd269a8 Added more descriptive comments; throw error if non-greedy operator is used; use new definition for kleene()
ecab7cc522 Make kleene() throw an error if the state is not quantifiable
8b6d35c106 Finished adding tests from Python's test suite; removed a non-greedy operator from one of the old tests
5e6435d8a7 Throw error if non-greedy operator is attempted
Compare 4 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-28 21:42:58 -06:00
5bb06900cc Added more tests
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-28 15:53:04 -06:00
bde153ce08 Changed '-t' flag to include the new RE_SINGLE_LINE flag as well
4c3c7e21c5 Fixed inverted Perl classes inside character classes eg. '[\D]'; added new flag for 'single-line' mode, where dot metacharacter matches newlines
61a128e27a Added more tests
Compare 3 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-28 14:58:26 -06:00
c700b01e80 Remove duplicate lines from re_tests.py
578959c9b3 Add Python's regex test suite
3918682339 Added more tests
d890a93775 Store multiline mode as a global flag
d029a171c0 Changed behavior of SOS and EOS assertions depending on whether multiline mode is enabled or not
Compare 9 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-28 10:43:15 -06:00
94c8044eb7 Running all tests case-insensitive with the same match indices wasn't a good idea
4a45d1c95e allCases() now takes a boolean parameter that indicates whether we are case-sensitive or not
861eb6067e Apply case-insensitive flag inside character classes as well
027dfb4d6b Run all tests twice - case-sensitive, then case-insensitive
932a20f641 Added more tests
Compare 9 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-01-27 19:06:47 -06:00
5e3801af7c Reformatted error messages according to Go guidelines
d44a25f412 Removed a type that I wasn't using
Compare 2 commits »