aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Removed protocol ('http') from links in documentationv1.1.0Roberto Ierusalimschy2023-06-263-14/+14
|
* Missing files in 'pack' scriptRoberto Ierusalimschy2023-06-231-2/+2
|
* Added a README fileRoberto Ierusalimschy2023-06-233-4/+11
|
* Copyright notice in module 're'Roberto Ierusalimschy2023-06-232-34/+10
|
* Fold capture deprecatedRoberto Ierusalimschy2023-06-231-52/+16
|
* Improved documentation for accumulator capturesRoberto Ierusalimschy2023-06-223-59/+75
|
* Accumulator pattern added to the 're' moduleRoberto Ierusalimschy2023-06-222-8/+15
|
* Detail in 're.lua'Roberto Ierusalimschy2023-06-191-2/+2
| | | | Distinction between 'm' and 'mm'.
* Some fixes in vibibility check for back capturesRoberto Ierusalimschy2023-06-196-46/+97
|
* Full captures can contain nested capturesRoberto Ierusalimschy2023-06-155-97/+173
| | | | | | 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-076-30/+60
| | | | | 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.
* First implementation for the accumulator captureRoberto Ierusalimschy2023-06-068-22/+131
|
* Code size stored in code itselfRoberto Ierusalimschy2023-05-297-28/+66
| | | | | | | Most patterns do not have code, as they are not directly used for a match; they are created only to compose larger patterns. So, we shouldn't waste space to store the size of their code, as a NULL pointer already indicates that the size is zero.
* New type name 'uint' (unsigned int)Roberto Ierusalimschy2023-04-285-17/+19
|
* Small optimization in size of charset treesRoberto Ierusalimschy2023-04-273-29/+35
| | | | Got a byte that was wasted for padding to be used in the bitmap.
* New macros 'fillset' and 'clearset'Roberto Ierusalimschy2023-04-276-11/+22
|
* Compact charsets used in trees, too.Roberto Ierusalimschy2023-04-279-120/+178
|
* New module 'lpcset'Roberto Ierusalimschy2023-04-264-79/+104
| | | | For code related to compact sets.
* Instruction array grows by factor of 1.5Roberto Ierusalimschy2023-04-251-9/+18
|
* Fixing several bugs left in previous commitRoberto Ierusalimschy2023-04-253-22/+47
|
* Smaller encoding for charsets in codeRoberto Ierusalimschy2023-04-243-75/+133
|
* Towards a smaller encoding for charsets in codeRoberto Ierusalimschy2023-04-236-28/+69
|
* Field Instruction.key put inside a unionRoberto Ierusalimschy2023-04-215-26/+28
| | | | So that we can get its space for other uses, if needed.
* Small extra testRoberto Ierusalimschy2023-04-111-2/+6
|
* DocumentationRoberto Ierusalimschy2023-04-1015-134/+15
| | | | | 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
|
* Clearer error message for 'pattern / nil'Roberto Ierusalimschy2022-08-181-1/+3
|
* DetailsRoberto Ierusalimschy2022-07-063-5/+6
|
* 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-193-1/+14
| | | | | | 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.)
* Added small note about LuaRocks in the Web pageRoberto Ierusalimschy2019-05-281-0/+7
|
* 'lpeg.version' changed to a stringRoberto Ierusalimschy2019-04-224-14/+11
|
* Implementation of UTF-8 rangesRoberto Ierusalimschy2019-04-179-20/+222
| | | | | New constructor 'lpeg.utfR(from, to)' creates a pattern that matches UTF-8 byte sequences representing code points in the range [from, to].
* Removed 'unsigned char' limit on number of rules in grammarsRoberto Ierusalimschy2019-04-147-48/+75
| | | | | | Added a new tree-type node 'TXInfo', which follows 'TRule' nodes, to store extra information about a node. (In this case, the rule number, with an 'unsigned short' field.)
* Some details before release 1.0.2v1.0.2Roberto Ierusalimschy2019-03-117-20/+107
| | | | | | | - changed release number - small corrections in 'pack' - removed "about" section in .html files - added files 'HISTORY' and 'lpeg-128.gif'
* Fixed bug when resizing capture listRoberto Ierusalimschy2019-02-272-42/+51
| | | | | | | | | | 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-205-20/+50
| | | | | | 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-2015-15/+15
| | | | | 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-2018-0/+7899
LPeg repository is being moved to git. Past versions won't be moved; they are still available in RCS.