Aadhavan Srinivasan Rockingcool
  • Joined on 2022-10-09
Rockingcool pushed to implementBackreferences at Rockingcool/kleingrep 2025-02-11 16:06:52 -06:00
f466d4a8d5 More progress on backreference implementation
Rockingcool created branch implementBackreferences in Rockingcool/kleingrep 2025-02-11 15:15:39 -06:00
Rockingcool pushed to implementBackreferences at Rockingcool/kleingrep 2025-02-11 15:15:39 -06:00
8327450dd2 Started implementing backreferences (octal values should now be prefaced with \0)
Rockingcool pushed tag v0.2.0 to Rockingcool/kleingrep 2025-02-10 20:44:17 -06:00
Rockingcool pushed to master at Rockingcool/kleingrep 2025-02-10 20:36:02 -06:00
073f231b89 Added function and examples for ReplaceAllFunc()
3b7257c921 Wrote function and example for ReplaceAllLiteral()
Compare 2 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-02-10 11:30:59 -06:00
668df8b70a Wrote MarshalText() and UnmarshalText() to implement TextMarshaler and TextUnmarshaler
214acf7e0f Wrote example for ReplaceAll(); fixed out-of-bounds bug in Expand()
50221ff4d9 Wrote ReplaceAll(), to replace all matches of the regex with a given string
5ab95f512a Updated docs
e7da678408 Removed obsolete documentation
Compare 5 commits »
Rockingcool pushed to master at Rockingcool/kleingrep 2025-02-10 08:25:21 -06:00
ab363e2766 Rewrote test for 'FindString()' to use lookarounds
c803e45415 Added example for 'FindStringSubmatch()'
525296f239 Added examples for 'FindAllString()' , 'FindAllSubmatch()' and 'FindAllStringSubmatch()'
eb0ab9f7ec Wrote test for FindAllStringSubmatch()
17a7dbae4c Wrote FindAllStringSubmatch()
Compare 6 commits »
Rockingcool pushed tag v0.1.0 to Rockingcool/kleingrep 2025-02-09 15:27:49 -06:00
Rockingcool merged pull request Rockingcool/kleingrep#2 2025-02-09 15:24:29 -06:00
Implement PCRE Matching (prefer left-branch)
Rockingcool pushed to master at Rockingcool/kleingrep 2025-02-09 15:24:29 -06:00
662527c478 Merge pull request 'Implement PCRE Matching (prefer left-branch)' (#2) from implementPCREMatchingRules into master
d1958f289c Commented out tests that would only pass with Longest()
15ee49f42e Rename method receivers from 'regex' to 're' (it's shorter)
b60ded4136 Don't break when a match is found, if we are looking for the longest match
9fbb99f86c Wrote example for Longest()
Compare 49 commits »
Rockingcool created pull request Rockingcool/kleingrep#2 2025-02-09 15:14:11 -06:00
Implement PCRE Matching (prefer left-branch)
Rockingcool created branch posixStyleMatching in Rockingcool/kleingrep 2025-02-09 15:11:59 -06:00
Rockingcool pushed to posixStyleMatching at Rockingcool/kleingrep 2025-02-09 15:11:59 -06:00
Rockingcool pushed to implementPCREMatchingRules at Rockingcool/kleingrep 2025-02-09 15:08:30 -06:00
d1958f289c Commented out tests that would only pass with Longest()
15ee49f42e Rename method receivers from 'regex' to 're' (it's shorter)
b60ded4136 Don't break when a match is found, if we are looking for the longest match
9fbb99f86c Wrote example for Longest()
af15904f3b Updated documentation
Compare 9 commits »
Rockingcool pushed to implementPCREMatchingRules at Rockingcool/kleingrep 2025-02-09 14:14:35 -06:00
47f88c817f Fixed typo
835d495990 Removed capitalization for error message (staticcheck)
76e0170cb9 Removed unused function
d172a58258 Throw error if match isn't found but test.result has >0 elements
7231169270 Removed unused functions
Compare 13 commits »
Rockingcool pushed to implementPCREMatchingRules at Rockingcool/kleingrep 2025-02-08 15:07:38 -06:00
f15a5cae34 Store all states visited in a single run of 'addStateToList()' in a slice
62ca1a872a Made zeroLengthMatchState() return a pointer; reduced the number of comparisons performd by nfaState.equals
99230b49de Use new function signature for zeroLengthMatchState()
Compare 3 commits »
Rockingcool pushed to implementPCREMatchingRules at Rockingcool/kleingrep 2025-02-07 15:20:00 -06:00
22ead83625 Fixed assertion matching
3604486a9b Used Pike's algorithm (an extension to Thompson's algorithm) (see Russ Cox's 2nd article); I think I almost have a working PCRE-style engine
052de55826 question() now returns 2 values
d2ad0d95a8 Modified question operator so that it doesn't create an unnecessary zero-state
ccf3b3b299 More progress on implementing PCRE matching
Compare 7 commits »
Rockingcool pushed to implementPCREMatchingRules at Rockingcool/kleingrep 2025-02-05 21:52:14 -06:00
ed4ffde64e REFACTOR NEEDED: Added another special case; insert instead of appending into currentStates
Rockingcool pushed to implementPCREMatchingRules at Rockingcool/kleingrep 2025-02-05 21:27:47 -06:00
fbc9bea9fb Commented out unused functions; use new nfaState parameters
cca8c7cda2 Got rid of transitions parameter, changed how kleene state is processed
Compare 2 commits »
Rockingcool pushed to implementPCREMatchingRules at Rockingcool/kleingrep 2025-02-05 17:02:06 -06:00
858e535fba Continued implementing Thompson's algorithm
7c62ba6bfd Started implementing Thompson's algorithm for matching, because the old one was completely backtracking (so it would enter infinite loops on something like '(a*)*' )
d4e8cb74fd Replaced pointer to nfaState with nfaState
3ce611d121 More work towards implementing PCRE matching
e0253dfaf3 Change kleene() to an alternation-style construct
Compare 5 commits »