pt::peg::container::peg(3tcl)
π pt::peg::container::peg β PEG Storage. Canned PEG grammar specification π
okay bestie, so this is pt::peg::container::peg from tcllib (it lives in the Parser Tools manual section, 3tcl), and it's literally the cutest little pre-stuffed grammar container you ever did see. let's get into it π
β¨ SYNOPSIS β¨
package require Tcl 8.5 9
package require snit
package require pt::peg::container::peg ?1?
package require pt::peg::container
like yes, that's the whole vibe check. ?1? is the optional version, in case you were wondering π«Ά
πΈ DESCRIPTION πΈ
okay so first things first, are you lost? π do you have trouble understanding this document? no shade, it happens. if that's you, bestie, please go read the overview provided by the Introduction to Parser Tools. that doc is the main character β it's the entrypoint to the whole system that this package is a part of. iykyk π
so here's the tea: this package provides a sub-type of pt::peg::container that comes preloaded with a parsing expression grammar. and not just any grammar β one describing a textual format for parsing expression grammars. it's giving grammar-ception, it's giving meta, it's iconic π₯
and here's the part that saves you so much reading: this sub-type provides the exact same API as pt::peg::container. no new tricks, no secret options, nothing extra. so instead of duplicating all that content here (so lazy, so real of them), the reader is asked to go read the referenced document. periodt π
π BUGS, IDEAS, FEEDBACK π
ngl, this document β and the package it describes β will undoubtedly contain bugs and other problems. like, they said it themselves, no cap. if you find one, please report it in the category pt of the Tcllib Trackers at [http://core.tcl.tk/tcllib/reportlist]. and while you're there, also report any ideas for enhancements you may have for either the package and/or the documentation. we love a proactive bestie β¨
when you're proposing code changes, please provide unified diffs, i.e. the output of diff -u. that's the format, don't fight it π
also note further that attachments are strongly preferred over inlined patches. you can attach stuff 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. go click the left-most button, bestie, it's right there π
π 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 whole lot of slay in one line, fr fr π)
π¦ CATEGORY π¦
Parsing and Grammars
π COPYRIGHT π
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
okay and that's the whole page, bestie!! this was tcllib version 1.1, and the manual page is pt::peg::container::peg(3tcl) β go forth and parse some grammars with your preloaded little container, she's ready π
β¨π
π¦ where this page comes from
- debian trixie: tcllib 2.0+dfsg-4 Β· Tcl
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 Β· Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 Β· Tcl
- 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