aboutsummaryrefslogtreecommitdiff
path: root/lpprint.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Some fixes in vibibility check for back capturesRoberto Ierusalimschy2023-06-191-2/+2
|
* Full captures can contain nested capturesRoberto Ierusalimschy2023-06-151-9/+17
| | | | | | 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-7/+20
| | | | | 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-3/+1
|
* Code size stored in code itselfRoberto Ierusalimschy2023-05-291-1/+2
| | | | | | | 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 macros 'fillset' and 'clearset'Roberto Ierusalimschy2023-04-271-2/+2
|
* Compact charsets used in trees, too.Roberto Ierusalimschy2023-04-271-1/+12
|
* Fixing several bugs left in previous commitRoberto Ierusalimschy2023-04-251-2/+3
|
* Towards a smaller encoding for charsets in codeRoberto Ierusalimschy2023-04-231-3/+15
|
* 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
* Implementation of UTF-8 rangesRoberto Ierusalimschy2019-04-171-4/+15
| | | | | 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-17/+20
| | | | | | 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/+244
LPeg repository is being moved to git. Past versions won't be moved; they are still available in RCS.