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
160
Commits
5
Branches
3
Tags
2.4 MiB
61bced606e
master
implementUnicodeCharClass
implementBackreferences
implementPCREMatchingRules
posixStyleMatching
v0.1.0
v0.2.0
v0.3.0
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '61bced606e'
${ noResults }
Commit Graph
43 Commits (61bced606e8a7d1fe99b26188734742c0826f4cc)
Author
SHA1
Message
Date
Aadhavan Srinivasan
822d1f319f
Added initial support for capturing groups
3 months ago
Aadhavan Srinivasan
34e9aedbd6
Compile lookaround regex to avoid compiling each time we want to use it
3 months ago
Aadhavan Srinivasan
6208f32710
Added support for numeric ranges: <5-38> will match all numbers between 5 and 38, inclusive on both ends. Also print line number on which matches occur, if we are in printing (and single line) mode
3 months ago
Aadhavan Srinivasan
fe1136c54c
Fixed bug with parentheses in lookaround regex; fixed bug with reading last line of test string (if it doesn't end in a newline)
4 months ago
Aadhavan Srinivasan
7916629c4d
Added substitute flag - substitute matched text with given text
4 months ago
Aadhavan Srinivasan
c87a4b7136
Added case-insensitve flag
4 months ago
Aadhavan Srinivasan
11c0a0552f
Added support for lokarounds; parsing and adding nodes for different lookarounds
4 months ago
Aadhavan Srinivasan
1a1a8f4f9c
Moved flag-checking after flag.Parse()
4 months ago
Aadhavan Srinivasan
b3ee1fe5e8
Convert an inverting character class into an 'allChars' node, with the characters marked as exceptions
4 months ago
Aadhavan Srinivasan
c694c47be7
Added flag to print match indices, and to enable multi-line mode
4 months ago
Aadhavan Srinivasan
c56d81a335
Added unicode support to dot metacharacter - it now matches _any_ unicode character (almost)
4 months ago
Aadhavan Srinivasan
8a1f1dc621
Added unicode support
...
Replaced strings with rune-slices, which capture unicode codepoints more accurately.
4 months ago
Aadhavan Srinivasan
805766a5ba
Added support for -l : only print lines with at least one match (or with exactly 0 matches, if -v is enabled
4 months ago
Aadhavan Srinivasan
dcd712dceb
Added support for -o flag: only print matching content
4 months ago
Aadhavan Srinivasan
f2b8812b05
Added support for -v flag, to invert which values are printed in color. Also got rid of unecessary 'else' clause
4 months ago
Aadhavan Srinivasan
11641596fa
Read multiple lines from stdin and apply regex to each one; Convert the array of matchIndex structs into a flat array of indices; speeds up process of checking if we have to print a character in color
4 months ago
Aadhavan Srinivasan
d8f52b8ccc
Added support for numeric specifiers, moved question mark operator to its own function
4 months ago
Aadhavan Srinivasan
8dbecde3ae
Added support for detecting assertion characters; changed input so that newline isn't required
4 months ago
Aadhavan Srinivasan
1bafdcdb7e
Added support for inverted matches; moved escape character detection to its own function
4 months ago
Aadhavan Srinivasan
a66e8f1c08
Concatenate every character if it is escaped
4 months ago
Aadhavan Srinivasan
7b815343f4
Removed exclamation mark in inverted metacharacters - had the opposite effect becasue of the way deleteFunc works
4 months ago
Aadhavan Srinivasan
1a7fd12569
Added support for some escaped metacharacters
4 months ago
Aadhavan Srinivasan
ca945c7740
Added support for character ranges and dot metacharacter
4 months ago
Aadhavan Srinivasan
11073759e3
Added support for character classes (not ranges, yet); also take input from stdin instead of cmdline arg
4 months ago
Aadhavan Srinivasan
84c768fd5e
Fixed small bug with question mark operator, wasn't adding the empty state's output
4 months ago
Aadhavan Srinivasan
7286e07858
Added question mark operator - 0 or 1
4 months ago
Aadhavan Srinivasan
ae219f763a
Added alternate function, removed relevant code from main; also started working on escape characters
4 months ago
Aadhavan Srinivasan
4781b87b90
Added comments
4 months ago
Aadhavan Srinivasan
bf3060b672
Used 'unique append' to ensure that a transition can only contain a given state once
4 months ago
Aadhavan Srinivasan
761a5ad052
Added functions for concatenation and kleene star creation, removed relevant code from main
4 months ago
Aadhavan Srinivasan
5ee427230c
Replaced 'pop' with 'mustPop' which panics on error
4 months ago
Aadhavan Srinivasan
273a03e3cf
Added more test cases
5 months ago
Aadhavan Srinivasan
139c88dd58
Started working on '+' operator
5 months ago
Aadhavan Srinivasan
c894ee4c0d
Renamed match function to 'findAllMatches', to better represent what it does
5 months ago
Aadhavan Srinivasan
9d786997df
Initial support for multiple matching
5 months ago
Aadhavan Srinivasan
11dd6aeb7c
More Kleene star fixes
5 months ago
Aadhavan Srinivasan
9d3bc2b804
Fixed kleene star behavior, which used to behave like a '+'
5 months ago
Aadhavan Srinivasan
cc0098b558
Print matched content in color
5 months ago
Aadhavan Srinivasan
bc11777ad5
Fixed Kleene Star matching
5 months ago
Aadhavan Srinivasan
d191686168
Rudimentary matching works
5 months ago
Aadhavan Srinivasan
213da40c3b
Allow one state to map to multiple states with the same transition eg. ab|aa
5 months ago
Aadhavan Srinivasan
8394e7867e
Fixed bug with last state detection
5 months ago
Aadhavan Srinivasan
82b33f3c9a
First commit
5 months ago