CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/pegmatch

README.md

The 3 package pegmatch

Caption     : Parsing Expression Grammars for TeX
Author      : Jianrui Lyu <tolvjr@163.com>
CTAN Page   : https://ctan.org/pkg/pegmatch
Repository  : https://github.com/lvjr/pegmatch
License     : The LaTeX Project Public License 1.3c

The pegmatch package ports PEG (Parsing Expression Grammars) to . Following the design in LPEG (Parsing Expression Grammars for Lua), it defines patterns as 3 variables, and offers several operators to compose patterns. In general, PEG matching is much more powerful than RE (Regular Expressions) matching. At this time, pegmatch package only supports strings. Also it is still in experimental status, hence some interfaces may change in future releases.

Download the contents of this package in one zip archive (138.7k).

pegmatch – Parsing Expression Grammars for

This package ports PEG (Parsing Expression Grammars) to . Following the design in LPEG (Parsing Expression Grammars for Lua), it defines patterns as 3 variables, and offers several operators to compose patterns.

In general, PEG matching is much more powerful than RE (Regular Expressions) matching.

Packagepegmatch
Supporthttps://github.com/lvjr/pegmatch/discussions
Bug trackerhttps://github.com/lvjr/pegmatch/issues
Repositoryhttps://github.com/lvjr/pegmatch
Version2025B 2025-02-16
LicensesThe Project Public License 1.3c
MaintainerJianrui Lyu
Contained inTeX Live as pegmatch
TopicsExperimental 3
Parser
...
Guest Book Sitemap Contact Contact Author