Commit Graph

21 Commits

Author SHA1 Message Date
6fd46f996e Removed auto-context-lines for -r flag 2021-01-15 12:53:57 -08:00
271ddaae66 Moved too-many-patterns check 2021-01-15 12:44:08 -08:00
ce1868d707 Added support for bp -p 'foo: "xx"; baz; baz: foo' 2021-01-15 12:40:19 -08:00
b29060f38b Cleaned up and simplified global state setting stuff (e.g. --verbose) 2021-01-15 02:05:17 -08:00
8ff80b09cc Major overhaul of how different modes of behavior work. Approximately 2x
speedup and 2x memory footprint reduction. Also removed --mode and
VM_HIDE (~ operator), and added --context. Printing works better now.
2021-01-15 01:19:10 -08:00
2c43d65c7d Made all the heap garbage collection code optional, which saves some
time and memory.
2021-01-14 19:43:30 -08:00
3cd61e3abc Overhaul of memory tracking and left recursion. Added explanation doc
for left recursion and fixed all visible memory leaks.
2021-01-14 19:21:31 -08:00
43aeadaab8 Replaced _exit()s with exits() 2021-01-13 19:01:49 -08:00
e7f94bbf50 Working towards zero memory leakage 2021-01-13 18:56:22 -08:00
45d7aff475 Major overhaul of some of the memory tracking code, as well as some
cleanup of the compilation code.
2021-01-13 01:48:36 -08:00
6deb08a4ab Added forward declarations for static functions 2021-01-12 22:33:28 -08:00
2d109f974b Some general cleanup, adding comments, adding more __attribute__s where
applicable
2021-01-12 22:22:38 -08:00
b27b71608b Standardizing to line-comments instead of block comments 2021-01-12 21:04:43 -08:00
8144ae5dc9 Renamed op.op -> op.type 2021-01-12 19:27:57 -08:00
38bfd5ce0e Making the code more intuitive and cleaning up some memory between
files.
2021-01-12 18:35:41 -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
9d1f51c483 Simplified grammars using intrusive linked lists instead of dynamic
arrays
2021-01-10 00:12:09 -08:00
03c790d5b6 Renamed viz -> printing, and tidied up the code a bit 2021-01-08 01:06:43 -08:00
1bdcca28e1 Added some todos 2021-01-08 00:57:46 -08:00
ff2ef95041 Fully purging "bpeg" from the source 2020-12-30 19:42:47 -08:00