Calvin Rose
fa75a395cb
Add support for buffer peg literals - address #1549
2025-01-26 09:48:48 -06:00
Calvin Rose
60d9f97750
Address issue #1539 - infinite loop in peg split
...
Other looping rules ensure forward progress by terminating if an
iteration is at the same location as the previous iteration. Do the same
for split.
2025-01-01 11:28:10 -06:00
Calvin Rose
9694aee819
Add rules for nth and only-tags. Address #1503
...
These rules allow selecting from a number of sub-captures
while dropping the rest. `nth` is more succinct in many cases, but `only-tags` is
more general and corresponds to an internal mechanism already present.
2024-09-12 17:23:34 -05:00
Philip Nelson
0b51ab157d
Fix typos
2024-06-16 06:59:27 -07:00
Ian Henry
61f38fab37
add a new (split) PEG special
...
This works similarly to string/split, but the separator is a PEG.
2024-01-05 22:02:52 -08:00
Ian Henry
ea75086300
add a new (sub) PEG special
...
(sub) will first match one pattern, then match another pattern against the
text that the first pattern advanced over.
2023-12-28 22:15:54 -08:00
sogaiu
5a5e70b001
Update and ascii-sort string escapes in peg
2023-07-08 17:54:00 +09:00
primo-ppcg
b3db367ae7
Add test cases for div and mod
2023-06-30 19:48:45 +07:00
sogaiu
9675411f35
Reorganize tests
2023-06-02 07:04:07 +09:00