Commit Graph

522 Commits

Author SHA1 Message Date
e14e4bacad Cleanup 2021-01-12 17:51:18 -08:00
a44938c6b1 Mitigation of memory leak 2021-01-10 13:29:30 -08:00
421880be12 Refactor of grammar logic to instead *only* use a linked list for all
grammar rules and backrefs. This simplifies things a lot.
2021-01-10 01:45:40 -08:00
b8a5d399d7 Removing unnecessary fields 2021-01-10 00:39:34 -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
aa91728a08 Replaced (void*) with (match_t*) in struct def 2021-01-09 23:43:59 -08:00
03c790d5b6 Renamed viz -> printing, and tidied up the code a bit 2021-01-08 01:06:43 -08:00
668c7baf55 Refactoring, moving visualization and virtual machine code into proper
files
2021-01-08 01:00:27 -08:00
7da6cde0fd Added pattern end 2021-01-08 00:58:00 -08:00
1bdcca28e1 Added some todos 2021-01-08 00:57:46 -08:00
fc5ee8fcfc Fixed bug with ..%\n 2021-01-08 00:46:47 -08:00
3a5f7af434 Removed some unnecessary after_space()s 2021-01-05 19:38:14 -08:00
d8d2a5a66e Changed precedence of => 2021-01-05 19:31:50 -08:00
00226cb763 Added whole-line-matching mode 2021-01-05 14:21:37 -08:00
4350d996d1 Simplified ... to ..%\n and $. to ./\n 2021-01-05 00:09:30 -08:00
8d14bf01bc Simplified makefile 2021-01-04 17:32:56 -08:00
331c55b0dc Updated compiler flags 2021-01-02 13:57:04 -08:00
76fa547d0e Removed mkdir -v flag for compatibility 2020-12-30 21:28:44 -08:00
ae27a7eec4 Fixed some minor issues 2020-12-30 21:20:54 -08:00
323da51fb7 Bumped XOPEN_SOURCE number 2020-12-30 21:18:39 -08:00
ff2ef95041 Fully purging "bpeg" from the source 2020-12-30 19:42:47 -08:00
bc2ddc0408 Print filenames when replacing in-place 2020-12-30 16:24:59 -08:00
eeec0acd0a Don't print line numbers when dealing with piped-in input 2020-12-30 16:21:49 -08:00
a07da1989d Simplified syntax for replacement: just =>, no need for {} 2020-12-30 15:30:19 -08:00
7d4bc36949 Added in-place filtering/replacements 2020-12-27 19:48:52 -08:00
177bc55cfc Updated to use `a,b,c 2020-12-19 19:04:21 -08:00
c28e647259 Added `a,b,c support 2020-12-19 18:53:51 -08:00
c477bfdbd5 Fix for range at the end of a file 2020-12-19 18:51:30 -08:00
b098e5225a Extra safety 2020-12-19 18:42:13 -08:00
06b1a795bb Better null byte handling, simplified match datastructures, and some
misc. cleanup
2020-12-17 19:49:56 -08:00
b37359b450 Cleanup 2020-12-17 19:26:38 -08:00
14ae16d987 Fixed -d flag bug 2020-12-17 18:53:16 -08:00
484e1e33da Memory allocation failure checks, and a simpler new() function 2020-12-17 16:27:23 -08:00
40be243004 Updated docs 2020-12-17 16:23:45 -08:00
b3bca46c2f Added --list-files 2020-12-17 16:23:29 -08:00
6c3654161c Better arg parsing 2020-12-14 22:32:47 -08:00
f019a4fcb1 Fix for json header file 2020-12-14 22:20:16 -08:00
94ba1fd177 Fixes for nodent in nested matches 2020-12-14 22:18:04 -08:00
3acf397e6d Imports cleanup and removing FILE* parameter from json 2020-12-14 22:13:47 -08:00
2fb68fa97f Moved json code into its own file 2020-12-14 22:01:50 -08:00
e638a517bf Re-hooked up JSON output 2020-12-14 21:58:38 -08:00
1ff4a9eb05 Hooked up json 2020-12-14 21:55:36 -08:00
52f154d53f Removed colon after filename in output 2020-12-14 21:43:06 -08:00
e4066302b9 Strings not multiline by default 2020-12-14 21:38:49 -08:00
29f993f984 Bug fix for literals exceeding end of file 2020-12-14 21:35:49 -08:00
a8b844cfb6 Multiline paren groups 2020-12-14 21:35:43 -08:00
3753bc1be0 Updated '|' to mean word boundary and \N for nodent 2020-12-14 21:28:00 -08:00
8b50fc5d1d Fixed parens typo 2020-12-14 21:27:47 -08:00
9f93a88890 Dead code 2020-12-14 21:01:30 -08:00