Pegex::Tutorial(3)

πŸ“¦
version 0.75 Β· 4 versions
, in epel 9

✨ 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