Commit Graph

522 Commits

Author SHA1 Message Date
c51a91c470 Git bookkeeping 2022-04-04 13:44:01 -04:00
ee8fb64e97 Rewording 2022-04-01 12:25:12 -04:00
c1c4f2109b Fixed typo 2022-02-28 18:45:34 -05:00
3aabbb6dc5 Fix to ensure proper line numbering 2021-11-07 12:27:42 -08:00
486fe98a9c Fix for left recursion error due to wrong context 2021-10-02 12:38:42 -07:00
304d5c35a8 Left recursion correctness fixes 2021-10-02 11:33:40 -07:00
44f8608467 Fix for infinite loop in left recursive patterns 2021-10-01 20:40:36 -07:00
9648eb66d3 Cleanup on left recursion code 2021-10-01 20:04:12 -07:00
0ad64a1006 Bugfix for use-after-free, as well as an issue with the order
grammars were loaded
2021-10-01 19:29:31 -07:00
73bbf6872a Code cleanup 2021-10-01 19:06:17 -07:00
bc0b216125 Update caching code to make it explicitly for failures only. 2021-10-01 18:53:21 -07:00
007959ca0f Better comments 2021-10-01 18:21:02 -07:00
b67cb4643c Use chained scatter table 2021-10-01 18:18:22 -07:00
b064b7e6af Get rid of cache doubly linked list 2021-10-01 16:20:34 -07:00
1bdf8f4f40 Switch from chained buckets to just clobbering in the hash table 2021-10-01 15:49:43 -07:00
8988771158 Fix 2021-10-01 14:35:17 -07:00
5f0a7a876a Removing refcounting bookkeeping 2021-10-01 14:31:22 -07:00
9812de0c58 Initial working version 2021-10-01 14:19:21 -07:00
c994824804 Added null byte test 2021-09-29 14:57:51 -07:00
2143a44b9c Updated readme 2021-09-28 17:02:25 -07:00
a61efe2cf0 Hardening utils (added *end param to avoid going past the end of
unterminated strings)
2021-09-28 16:59:01 -07:00
46fa856529 Better error messages (bugfix) 2021-09-27 21:54:41 -07:00
90bfefda16 Added comment 2021-09-27 21:42:22 -07:00
117ccaa1dc Cleanup for trailing line printing 2021-09-27 21:41:30 -07:00
c60c1db8a2 Bugfix for certain patterns (e.g. $$) that didn't trigger line number
printing
2021-09-27 21:34:08 -07:00
b882e30bf7 Performance optimization for patterns like (^"foo") or (|"foo"|) 2021-09-27 21:33:30 -07:00
840d62a60a Cache cleanup cleanup-- making sure matches don't get recycled when
they're stil being used.
2021-09-27 20:53:45 -07:00
911827fac3 Removed definitions as a separate type and instead encode that value in
the patterns themselves. This simplifies memory management a lot and
speeds up performance.
2021-09-27 20:36:10 -07:00
a96284615b Added __concat and __div 2021-09-26 14:34:06 -07:00
6b29503e95 Added :getsource() method 2021-09-26 14:23:24 -07:00
9983e2444a Switched pattern objects to use a full userdata instead of a table 2021-09-26 13:43:39 -07:00
77d9007a88 Refactor of pat_t memory management to use doubly linked lists, and
moving the recursive freeing code from Lua/lbp.c into pattern.c
2021-09-26 13:12:02 -07:00
ee0174001b Minor cleanups 2021-09-26 12:57:04 -07:00
667f86e404 Some optimization, some cleanup 2021-09-25 23:11:13 -07:00
3fe77cbf3e :eachmatch() -> :matches() 2021-09-25 19:05:15 -07:00
fb1840e07a Improved lua API, including re.compile() and re.eachmatch() 2021-09-25 19:03:56 -07:00
270a0a47c4 Minor cleanup 2021-09-25 14:53:34 -07:00
1593b30393 Minor cleanup of context printing code 2021-09-25 01:34:19 -07:00
17c90ebe52 Bugfix for empty files and cleanup since memchr is doing good work 2021-09-25 01:32:31 -07:00
8ca1efeff9 Slightly ugly hack to fix but where line number got double printed 2021-09-25 00:31:09 -07:00
43911ca583 Updated docs 2021-09-25 00:20:21 -07:00
9e8310705d Added size comparison with LPEG 2021-09-25 00:01:33 -07:00
42e1d4795f Updated readme 2021-09-24 23:58:23 -07:00
0490dc1e06 Updated readme 2021-09-24 23:56:41 -07:00
b00fc15125 Removed file_err() and file_printf() in favor of just inlining some of
the error assertion code. Also eliminated most of the spoof_file() calls
in favor of just using command line arguments directly.
2021-09-24 23:49:22 -07:00
787784c77e Abbreviation 2021-09-24 23:16:06 -07:00
849257dde0 Removed weak optimization for ignorecase skipping 2021-09-24 23:14:38 -07:00
1b777a569e Fixed double line numbering 2021-09-24 23:00:40 -07:00
6c612d4def Updated docs slightly 2021-09-24 22:57:39 -07:00
cfc53ea643 Overhaul of lua API to use tables 2021-09-24 22:55:39 -07:00