This website works better with JavaScript.
Explore
Help
Sign In
Rockingcool
/
kleingrep
Watch
2
Star
0
Fork
You've already forked kleingrep
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
455
Commits
5
Branches
7
Tags
2.5 MiB
v0.5.0
master
implementUnicodeCharClass
implementBackreferences
implementPCREMatchingRules
posixStyleMatching
v0.1.0
v0.2.0
v0.3.0
v0.4.0
v0.5.0
v0.6.0
v0.6.1
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'v0.5.0'
${ noResults }
Commit Graph
455 Commits (v0.5.0)
All Branches
Search
Author
SHA1
Message
Date
Aadhavan Srinivasan
753e973d82
Started rewrite of matching algorithm, got concatenation and alternation done, kleene and zero-state stuff is next
2 months ago
Aadhavan Srinivasan
5563a70568
Reverse the order in which I pop states for alternation, because this messes with the left branch-right branch thing
2 months ago
Aadhavan Srinivasan
de0d7345a8
Store left and right branches of alternation separately
2 months ago
Aadhavan Srinivasan
ad273b0c68
Trying to emulate backtracking by using string pointers within threads (something similar to rsc's 2nd regexp article)
2 months ago
Aadhavan Srinivasan
e167cdb2cb
Fixed mistake in test output
2 months ago
Aadhavan Srinivasan
1fd48ae614
Store the current string pointer as a 'thread variable' (allows us to simulate backtracking)
2 months ago
Aadhavan Srinivasan
09812956ac
Disable all optimizations
2 months ago
Aadhavan Srinivasan
fbc9dfcc95
Trying something out; we'll see if it works
2 months ago
Aadhavan Srinivasan
bc32e0cb76
Started working on converting to PCRE matching rules (prefer left branch of alternation)
2 months ago
Aadhavan Srinivasan
ad0f7d0178
Added new state fields to tell if a state is a question or alternation
2 months ago
Aadhavan Srinivasan
4e597f8eb1
Implemented a priority-queue to use while matching
2 months ago
Aadhavan Srinivasan
ef476e8875
Reverse the order of the numeric range before adding it, to maintain compatibility with PCRE matching rules (even though I don't implement them, if I do in the future)
2 months ago
Aadhavan Srinivasan
7e6b02632f
Added more tests; commented out tests that I am failing
2 months ago
Aadhavan Srinivasan
f94e3f2e71
Added comments
2 months ago
Aadhavan Srinivasan
b129d83c3f
Added function to reset threads
2 months ago
Aadhavan Srinivasan
43aa7b5876
Updated documentation
2 months ago
Aadhavan Srinivasan
9a3bfca313
Renamed unique_append to uniqueAppend
2 months ago
Aadhavan Srinivasan
b6ab54f6dd
Reset threads when findAllSubmatchHelper is called
2 months ago
Aadhavan Srinivasan
6a96c98d04
Fixed bug where the regex '(()|.)(b)' wouldn't compile
2 months ago
Aadhavan Srinivasan
3cfc2a6854
Updated Makefile
2 months ago
Aadhavan Srinivasan
5d7a02e796
Added gcflags to go build
2 months ago
Aadhavan Srinivasan
a46d2f4546
Updated comments
2 months ago
Aadhavan Srinivasan
c88ebd1aa5
Added comments explaining what a Match is
2 months ago
Aadhavan Srinivasan
fd102292c6
Added example for FindSubmatch
2 months ago
Aadhavan Srinivasan
6d692d0dfc
Rename Group.toString() to Group.String()
2 months ago
Aadhavan Srinivasan
7c4538a259
Added 'example' file that contains testable examples
2 months ago
Aadhavan Srinivasan
2a9ae0b68a
Wrote test for 'FindSubmatch'
2 months ago
Aadhavan Srinivasan
783ae2ad10
Updated call to 'isValid' with call to 'IsValid'
2 months ago
Aadhavan Srinivasan
b5e6bc112c
Wrote 'reg.FindSubmatch()' which returns the leftmost match with submatches, renamed 'isValid' to 'IsValid' to export it, renamed 'ToString' to 'String'
2 months ago
Aadhavan Srinivasan
206fea34cd
Added function to return the number of subexpressions in the group
2 months ago
Aadhavan Srinivasan
fcdb23524a
Added more documentation
2 months ago
Aadhavan Srinivasan
ac936659b6
Updated documentation
2 months ago
Aadhavan Srinivasan
e6dba9fdcf
Updated documentation
2 months ago
Aadhavan Srinivasan
30779a446b
Updated documentation
2 months ago
Aadhavan Srinivasan
f629a0f08f
Added 'mustCompile' which panicks if there is an error compiling
2 months ago
Aadhavan Srinivasan
6869cd00a2
Return error instead of nil when 'Find' fails
2 months ago
Aadhavan Srinivasan
02bc8f30a2
Added test for 'Find'
2 months ago
Aadhavan Srinivasan
ac05bceda3
Use method instead of function
2 months ago
Aadhavan Srinivasan
037ac75ea6
Wrote new method to return 0-group of leftmost match; reorganized some functions for better clarity; made 'FindNthMatch' a method
2 months ago
Aadhavan Srinivasan
e9d4e857cf
Run 'TestFindAllStrings' since that function has been implemented
2 months ago
Aadhavan Srinivasan
b685d2fd5f
Renamed 'findAllMatchesHelper' to 'findAllSubmatchHelper'
2 months ago
Aadhavan Srinivasan
8eda5055ff
Replaced call to 'FindAllMatches' with call to 'FindAll' or 'FindAllSubmatch' depending on whether I need submatches
2 months ago
Aadhavan Srinivasan
45b6566b2c
Replaced function call with method call
2 months ago
Aadhavan Srinivasan
e22822e619
Renamed 'FindAllMatches' to 'FindAll' and made it a method; made it return a slice of 0-groups; the functionality of 'FindAllMatches' is now in 'FindAllSubmatch'
2 months ago
Aadhavan Srinivasan
692de2a32b
Added lookarounds and numeric ranges to documentation
2 months ago
Aadhavan Srinivasan
0d19664044
Cleared up some comments, wrote a skeleton for FindAllString
2 months ago
Aadhavan Srinivasan
1bfb09b6c7
Made 'FindString' a method of 'Reg'
2 months ago
Aadhavan Srinivasan
b0b8bf23af
Updated documentation
2 months ago
Aadhavan Srinivasan
00570f07fe
Wrote documentation on syntax
2 months ago
Aadhavan Srinivasan
7431b1a7b2
Changed \Z to \z to fit with Go's naming
2 months ago
First
Previous
1
2
3
4
5
...
Next
Last