aboutsummaryrefslogtreecommitdiff
path: root/lptree.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Small improvementsHEADmasterRoberto Ierusalimschy2024-06-171-1/+1
|
* Captures point to string positions using indicesRoberto Ierusalimschy2023-06-071-0/+1
| | | | | 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-061-2/+8
|
* Code size stored in code itselfRoberto Ierusalimschy2023-05-291-5/+4
| | | | | | | 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-281-1/+1
|
* Small optimization in size of charset treesRoberto Ierusalimschy2023-04-271-25/+29
| | | | Got a byte that was wasted for padding to be used in the bitmap.
* New macros 'fillset' and 'clearset'Roberto Ierusalimschy2023-04-271-4/+5
|
* Compact charsets used in trees, too.Roberto Ierusalimschy2023-04-271-17/+53
|
* DocumentationRoberto Ierusalimschy2023-04-101-4/+0
| | | | | Removed '$Id' from all files + updated copyright year + other changes in comments and documentation
* Clearer error message for 'pattern / nil'Roberto Ierusalimschy2022-08-181-1/+3
|
* 'lpeg.version' changed to a stringRoberto Ierusalimschy2019-04-221-7/+3
|
* Implementation of UTF-8 rangesRoberto Ierusalimschy2019-04-171-2/+53
| | | | | 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-141-15/+17
| | | | | | 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.)
* 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/+1305
LPeg repository is being moved to git. Past versions won't be moved; they are still available in RCS.