From b55b80ec6c4f8f1ace48db247c539a91d89cb9a0 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Sun, 17 Nov 2024 21:29:18 -0500 Subject: [PATCH] Updated TODO I didn't like the existing capturing group implementation, so I moved that to a separate branch. This branch does not (at the moment) any code relating to capturing groups. --- todo.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/todo.txt b/todo.txt index a273f0f..d9df516 100644 --- a/todo.txt +++ b/todo.txt @@ -1,3 +1,10 @@ 1. Error-checking - invalid regex, Out-of-bounds stuff. Do more testing. 2. More operators - numeric specifier, escaped characters 3. Fix adding concatenation operators in shunting-yard function (very janky, compares against operators individually) +Ideas for flags: + -o, -v : Only matched text (separated by newline), Inverted match (just like grep) + Also some other grep flags (will have to look into this) + NOT IN GREP + -s : Substitute (string is provided as argument) + -p : Print CSV (or some format) of matches - start idx and end idx + -m : Print th match (-m 1 = first match, -m 2 = second match)