pt::peg::import::container(3tcl)
π pt::peg::import::container β PEG Import Plugin. From CONTAINER format π
okay bestie, welcome to the Parser Tools corner of the tcllib world β this is pt::peg::import::container(3tcl), and yeah, it's a whole manual page for a thing that, plot twist, does not exist. Stay with me, it's iconic actually.
β¨ SYNOPSIS β¨
package require Tcl 8.5 9
that's it. that's the whole synopsis. she's low maintenance π
πΈ DESCRIPTION πΈ
Are you lost ? Do you have trouble understanding this document ? (yes bestie, same, we've all been there) In that case, please go read the overview that the Introduction to Parser Tools gives you. That doc is literally the entrypoint to the entire system this package is a part of β start there, it's the main character, this page is just a supporting role.
Now the gag: this package does not exist. There is no need for it. None. Zero. Nada. π«Ά
Here's why that's not a bug, it's a feature: the CONTAINER format for parsing expression grammars is a piece of Tcl code which, when sourced, hands you a class whose instances already have the grammar we want to import loaded up. So likeβ¦ the container output is its own import package. It's giving self-sufficient. It's giving no middleman. Not me being impressed by a file format π
π¦ BUGS, IDEAS, FEEDBACK π¦
This document, and the package it describes, will undoubtedly contain bugs and other problems. (every doc does, it's fine, we don't gatekeep.) Please report such in the category pt of the Tcllib Trackers at:
http://core.tcl.tk/tcllib/reportlist
Also please report any ideas for enhancements you may have for either the package and/or the documentation. We love ideas. Ideas are slay.
When proposing code changes, please provide unified diffs, i.e. the output of diff -u. periodt.
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. (yes the left-most one. she's right there. click her. π)
π 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
look at that keyword list. a whole vibe check. π
π CATEGORY π
Parsing and Grammars
π COPYRIGHT π
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
k that's the whole page bestie, go forth and source your container files directly, no import plugin required π§
tcllib, version 0 β pt::peg::import::container(3tcl) β mwah, stan Andreas Kupries fr fr πβ¨
π¦ 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