Pegex::Tutorial(3)
β¨ Pegex Tutorials β¨
Okay bestie, welcome to Pegex::Tutorial(3)! π This is your little index page, and it's giving "table of contents but make it cute."
Pegex has a growing number of tutorials on how to do various parsing tasks, and this document is just an index to the current tutorials. No cap. π«Ά
π Pegex::Tutorial::JSON π
This one is a very in-depth tutorial about the creation of the module Pegex::JSON β a JSON decoder that uses Pegex β and all the thought that went into creating it. It covers almost all of the Pegex::Syntax as well. Obsessed. β¨
π Pegex::Tutorial::Calculator π
Pegex comes with an eg/ directory. One example is eg/calculator/calculator1.pl in Pegex. It's a simple precedence parser (and evaluator) for arithmetic expressions like this one:
1 * (2 + 3) / (4 ^ 5 ^ 6 - -7)
π See Also π
Pegex::APIβ API documentation. The literal API icon. πPegex::Syntaxβ a detailed description of the Pegex grammar language syntax. Very "read this and slay" energy. π¦Pegex::Resourcesβ a list of all things Pegex. The motherlode. πΈ
Mwah π this iconic page is from perl v5.32.1, dated 2022-07-22, and it's literally Pegex::Tutorial(3). Periodt. π
π¦ where this page comes from
- epel 9: perl-Pegex 0.75-10.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms