Commit Graph

21 Commits

Author SHA1 Message Date
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
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
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
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
3de6de1ffa Added builtins for lua library 2021-09-23 21:19:39 -07:00
6ed610b7a2 Added test file 2021-09-23 20:51:50 -07:00
3a2492d584 WIP: working line breaks, formatting, etc. All seems functional, but a
bit messy
2021-09-23 20:51:04 -07:00
04eb92153f WIP 2021-09-23 17:31:21 -07:00
1460e6d940 Updated lua code 2021-09-23 15:42:19 -07:00
89c5888dd6 Switched to using an optional type 2021-09-23 14:38:46 -07:00
55ff8ec663 WIP 2021-09-23 13:33:22 -07:00
7122dcdc81 Added Lua bindings 2021-09-22 23:51:34 -07:00