Commit Graph

40 Commits

Author SHA1 Message Date
3a2492d584 WIP: working line breaks, formatting, etc. All seems functional, but a
bit messy
2021-09-23 20:51:04 -07:00
1727d9b75c Use strncasecmp and memmem instead of custom logic. 2021-09-23 17:46:46 -07:00
f8860c385e Style change: added cino=:0 (i.e. case statements on same indentation as
switch). Also fixed issue where $$ would fail to match with trailing
newline on file
2021-08-28 16:05:30 -07:00
ac2e8f5a15 Improved, cleaner/faster/more flexible return value checks 2021-08-06 17:52:20 -07:00
d3c1526f71 Cleanup of space/line skipping code 2021-08-01 13:41:13 -07:00
994c9c973e Changed how definitions work 2021-08-01 12:40:27 -07:00
18e8a131f5 xfree() -> delete() 2021-07-30 15:06:04 -07:00
3e63da180b Cleaner checking of stdlib negative returns 2021-07-30 15:03:21 -07:00
33a63bb8d9 Improved error checking 2021-07-30 14:54:28 -07:00
d703070980 Fixed bug where pointer wasn't getting NULLed out 2021-07-26 13:20:40 -07:00
cc84c3d791 Made escape sequence handling stricter: no longer supporting arbitrary
characters, only special escapes like \n, hex sequences like \x0a, octal
sequences like \012, and backslashes \\
2021-07-19 19:57:59 -07:00
a67a257044 Fix compiler warning nits 2021-05-31 12:56:49 -07:00
de0fec8fcb Removed check() and replaced with err()/errx() 2021-01-26 17:54:23 -08:00
16c401fbbb Simplified code by disallowing escapes in strings and splitting
stringpatterns into chunks (so unescaped versions don't need to be
created)
2021-01-19 21:35:34 -08:00
0b0e99bfac A few more pedantic cleanups 2021-01-18 11:28:39 -08:00
e98574570e More static analysis cleanup 2021-01-18 11:15:53 -08:00
eece8c8556 More static analyzer cleanup, including switching to use bools where
appropriate and EXIT_SUCESS/EXIT_FAILURE
2021-01-18 10:30:17 -08:00
ffdf32da2f Code cleanup on utils 2021-01-17 23:06:37 -08:00
a7e3e421db Deprecated #(...)# block comments 2021-01-16 10:39:09 -08:00
43aeadaab8 Replaced _exit()s with exits() 2021-01-13 19:01:49 -08:00
b27b71608b Standardizing to line-comments instead of block comments 2021-01-12 21:04:43 -08:00
f4a7b80b4f Updated more things to use xfree(&foo) instead of free(foo) 2021-01-10 00:24:24 -08:00
9d1f51c483 Simplified grammars using intrusive linked lists instead of dynamic
arrays
2021-01-10 00:12:09 -08:00
ae27a7eec4 Fixed some minor issues 2020-12-30 21:20:54 -08:00
ff2ef95041 Fully purging "bpeg" from the source 2020-12-30 19:42:47 -08:00
a07da1989d Simplified syntax for replacement: just =>, no need for {} 2020-12-30 15:30:19 -08:00
06b1a795bb Better null byte handling, simplified match datastructures, and some
misc. cleanup
2020-12-17 19:49:56 -08:00
484e1e33da Memory allocation failure checks, and a simpler new() function 2020-12-17 16:27:23 -08:00
3acf397e6d Imports cleanup and removing FILE* parameter from json 2020-12-14 22:13:47 -08:00
3753bc1be0 Updated '|' to mean word boundary and \N for nodent 2020-12-14 21:28:00 -08:00
f7430e443a Major improvements to error messages 2020-09-28 22:02:00 -07:00
1a8095c6d7 Starting to add better error messages 2020-09-28 21:30:43 -07:00
907101b421 Fixes for captures and backrefs, and added block comments 2020-09-28 16:35:22 -07:00
6c237850e9 WIP 2020-09-16 19:41:28 -07:00
a82164505e Added nodent support (|) 2020-09-14 01:21:49 -07:00
8743095708 Added null terminator and closed file handler 2020-09-13 16:12:42 -07:00
877526b5df Fixes for CLI flags 2020-09-12 20:05:55 -07:00
c18eb4c996 Added backrefs 2020-09-12 18:20:13 -07:00
2baadd9ba0 Tightening up the makefile flags and vim modelines 2020-09-11 01:38:44 -07:00
2a11acc667 Major overhaul refactor restructuring 2020-09-11 01:28:06 -07:00