Commit Graph

309 Commits

Author SHA1 Message Date
1bfb09b6c7 Made 'FindString' a method of 'Reg' 2025-01-30 22:51:31 -05:00
b0b8bf23af Updated documentation 2025-01-30 22:51:16 -05:00
00570f07fe Wrote documentation on syntax 2025-01-30 17:51:46 -05:00
7431b1a7b2 Changed \Z to \z to fit with Go's naming 2025-01-30 15:08:18 -05:00
ee51e39d59 Added support for start-of-input (\A) and end-of-input (\Z) assertions 2025-01-30 13:56:56 -05:00
db7c884b83 Added test for start-of-input and end-of-input assertion 2025-01-30 13:56:26 -05:00
c3059fe899 Return a new error instead of rethrowing a non-existent error 2025-01-30 13:47:51 -05:00
4f577592ba Added rule to run tests 2025-01-30 13:46:41 -05:00
b734d61a03 Throw error if \B is used in character class 2025-01-30 12:27:22 -05:00
00c39857eb Rethrow errors instead of rewriting them 2025-01-30 12:26:50 -05:00
aa9e2324ee Removed unnecessary space 2025-01-30 11:25:19 -05:00
66b96bf9e8 Updated license 2025-01-30 11:20:05 -05:00
0ac39bfb7b Started working on package-level documentation 2025-01-30 11:19:53 -05:00
dbc9fe2c3b Added license 2025-01-30 11:08:28 -05:00
eeeb9387d5 Updated Makefile to build library and command separately 2025-01-30 10:58:33 -05:00
57eb935bd1 Updated comment 2025-01-30 10:48:59 -05:00
cbd679949f Updated more referencs to constants 2025-01-30 10:47:35 -05:00
a63426d965 Updated references to constants 2025-01-30 10:47:01 -05:00
2e3450285c Renamed one more variable to avoid exporting 2025-01-30 10:45:11 -05:00
7e792f1248 Renamed more constants to avoid exporting 2025-01-30 10:44:34 -05:00
b8f5b9af7c Updated one more reference to epsilon 2025-01-30 10:39:00 -05:00
be60f2fb51 Updated references to 'epsilon' 2025-01-30 10:38:26 -05:00
7aee4280cc Renamed 'EPSILON' to 'epsilon' to avoid exporting 2025-01-30 10:36:10 -05:00
e01ef48cbc Updated CONCAT to be a metacharacter instead of just a tilde, and renamed it to avoid exporting 2025-01-30 10:34:05 -05:00
93474c5159 Renamed 'state' to 'nfaState' because 'state' by itself means nothing 2025-01-30 10:31:02 -05:00
d81b2ddaaa Renamed 'State' to 'state' to avoid exposing the insides of the engine 2025-01-30 10:27:56 -05:00
429d286439 Renamed variable to avoid conflicting with type name 2025-01-30 10:26:31 -05:00
198a2c12a7 Renamed variable to avoid conflicting with type name 2025-01-30 10:25:24 -05:00
7e88b8a4b0 Renamed variable to avoid conflicting with type name 2025-01-30 10:24:24 -05:00
af5b6ebe08 Renamed type to avoid exporting 2025-01-30 10:23:01 -05:00
289bba35e2 Updated assertion constants so that they aren't exported 2025-01-30 10:18:18 -05:00
7e6377a4c4 Updated more constants, so that they aren't exported 2025-01-30 10:15:54 -05:00
73c6a442ce Updated nodeType constants so that they aren't exported 2025-01-30 10:13:55 -05:00
ca8f8e1030 Renamed function 2025-01-30 10:02:59 -05:00
24a5045ebe Updated map and reduce function names so that they aren't exported 2025-01-30 09:52:00 -05:00
f6d56b74e1 Updated module name to 'kleingrep' (Let's goo!) 2025-01-30 09:22:31 -05:00
dc53951408 Update package name in import 2025-01-30 09:15:44 -05:00
aef8152fc1 Renamed package 'greg' to 'regex' 2025-01-30 09:15:29 -05:00
ca8d32cd7f Added more tests 2025-01-30 09:09:34 -05:00
368941e5c7 Fix out-of-bounds access in genRangeInclusive 2025-01-30 09:09:20 -05:00
b9da5ec08d Replace use of 'genRange' with 'genRangeInclusive' 2025-01-30 09:09:03 -05:00
c5a43c47f0 Update type and method references to use qualified names 2025-01-30 09:03:37 -05:00
c3c3829ac9 Move 'genRange' function to 'cmd' 2025-01-30 09:03:07 -05:00
ee6bb3959c Removed function that wasn't being used in 'greg', moved to 'main' 2025-01-30 08:58:43 -05:00
c06d81d17d Updated struct field reference 2025-01-30 08:58:11 -05:00
1a2f1b7ca9 Restructured code into 'cmd' module with CLI and 'greg' module with regex library; export necessary struct fields and methods 2025-01-30 08:56:12 -05:00
54df6f1815 Added numeric range tests 2025-01-29 14:45:25 -05:00
bd424ceccd Catch error from range2regex() and return it 2025-01-29 14:45:05 -05:00
e8e09dd0f9 Throw error instead of panicking 2025-01-29 14:44:48 -05:00
46f4a2ad83 Return error instead of panicking if the range cannot be processed 2025-01-29 14:30:16 -05:00