pt::peg::container::peg(n)
β¨ pt::peg::container::peg β¨
okay so bestie, welcome to the manual page for pt::peg::container::peg(n) β yes that's a whole lot of colons, it's giving very "I have a long and prestigious name" energy and honestly? deserved π
π NAME π
pt::peg::container::peg β PEG Storage. Canned PEG grammar specification π₯«β¨
π¦ SYNOPSIS π¦
package require Tcl 8.5 9
package require snit
package require pt::peg::container::peg ?1?
package require pt::peg::container
like, that's the whole vibe check right there, no cap.
πΈ DESCRIPTION πΈ
Are you lost ? Do you have trouble understanding this document ? π fr fr, if that's you, please go read the overview that the Introduction to Parser Tools hands you. That document is literally the entrypoint to the whole system this package is part of β it's the main character of the docs, this one is a supporting role π«Ά
So. This package provides a sub-type of pt::peg::container β and it comes preloaded with a parsing expression grammar that describes a textual format for parsing expression grammars. Yes bestie, it's grammars all the way down, iconic behaviour honestly π
The sub-type gives you the exact same API as pt::peg::container. And instead of duplicating all those contents here (copy-paste is not the moment π), the reader is asked to go read the referenced document. periodt.
π BUGS, IDEAS, FEEDBACK π
This document, and the package it describes, will undoubtedly contain bugs and other problems. π It's not a maybe, it's a when.
Please report such in the category pt of the Tcllib Trackers:
http://core.tcl.tk/tcllib/reportlist
Please also report any ideas for enhancements you may have for either package and/or documentation β we want the glow-up ideas too β¨
When proposing code changes, please provide unified diffs, i.e the output of diff -u.
Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. it's literally right there, two clicks, you got this π
π₯ KEYWORDS π₯
EBNF, LL(k), PEG, TDPL, context-free languages, expression, grammar, matching, parser, parsing expression, parsing expression grammar, push down automaton, recursive descent, state, top-down parsing languages, transducer
(that's a lot of words but every single one of them is doing its job, iykyk π)
π CATEGORY π
Parsing and Grammars
π COPYRIGHT π
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page bestie!! π this one shipped out with tcllib version 1.1 β mwah, no notes, go forth and parse π§πΈ
π¦ where this page comes from
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- Copyright (c) 2009 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms