aboutsummaryrefslogtreecommitdiff
path: root/lpvm.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Some fixes in vibibility check for back capturesRoberto Ierusalimschy2023-06-191-5/+0
|
* Full captures can contain nested capturesRoberto Ierusalimschy2023-06-151-6/+35
| | | | | | Nested captures can be recognized because they start (and end) inside the character range of the full capture. This optimization can remove a lot of 'close' captures from the capture logs.
* Captures point to string positions using indicesRoberto Ierusalimschy2023-06-071-10/+10
| | | | | That uses 4 bytes (uint) instead of 8 (char*); the size of the structure 'Capture' reduces from 16 to 8 bytes in 64-bit machines.
* New type name 'uint' (unsigned int)Roberto Ierusalimschy2023-04-281-10/+10
|
* Smaller encoding for charsets in codeRoberto Ierusalimschy2023-04-241-3/+3
|
* Towards a smaller encoding for charsets in codeRoberto Ierusalimschy2023-04-231-9/+19
|
* Field Instruction.key put inside a unionRoberto Ierusalimschy2023-04-211-5/+5
| | | | So that we can get its space for other uses, if needed.
* DocumentationRoberto Ierusalimschy2023-04-101-4/+0
| | | | | Removed '$Id' from all files + updated copyright year + other changes in comments and documentation
* Capture-list grow factor changed to 1.5Roberto Ierusalimschy2022-12-091-2/+2
|
* Better computation of size limit in 'growcap'Roberto Ierusalimschy2022-02-221-4/+13
| | | | | | Old code mixed size in elements (counted with 'int's) with size in bytes (division by the size of an element). Moreover, when it could not double the size, it grew it one by one, which is undoable performance-wise.
* Bug: IBackCommit must remove dynamic captures, tooRoberto Ierusalimschy2019-07-191-0/+2
| | | | | | Like a fail, a IBackCommit instruction must remove any dynamic capture made inside an 'and' pattern. (The added test for this problem needs assertions on to detect the bug.)
* Implementation of UTF-8 rangesRoberto Ierusalimschy2019-04-171-0/+40
| | | | | New constructor 'lpeg.utfR(from, to)' creates a pattern that matches UTF-8 byte sequences representing code points in the range [from, to].
* Fixed bug when resizing capture listRoberto Ierusalimschy2019-02-271-37/+46
| | | | | | | | | | Fixed the bug reported in http://lua-users.org/lists/lua-l/2018-11/msg00080.html The field 's' of the open group of captures inside a run-time capture was being reused by the open group of the results of the run-time capture, even though that open-group entry was being removed from the list and then added again.
* Avoid stack overflow when handling nested capturesRoberto Ierusalimschy2019-02-201-1/+2
| | | | | | The C code uses recursion to handle nested captures, so a too deep nesting could create a stack overflow. The fix limits the handling of nested captures to 'MAXRECLEVEL' (default is 200 levels).
* Removed extra information from RCS keyword stringsRoberto Ierusalimschy2019-02-201-1/+1
| | | | | Version numbers and dates from RCS keyword strings removed from all source files; keeps only the file name.
* Fist version of LPeg on GITRoberto Ierusalimschy2019-02-201-0/+364
LPeg repository is being moved to git. Past versions won't be moved; they are still available in RCS.