pt::peg::import::container(n)
π pt::peg::import::container β the manual page, bestie edition π
okay so welcome to pt::peg::import::container, one of the pages from Parser Tools in the Tcllib world. this is the PEG Import Plugin for the CONTAINER format. grab a boba, we're doing this. π§β¨
π«Ά SYNOPSIS
package require Tcl 8.5 9
that's it. that's the whole synopsis. short queen. π
πΈ DESCRIPTION
not gonna lie bestie, if you're sitting there like "what is happening, I am lost, I do not understand this document" β same energy, and there's a fix. go read the overview in the Introduction to Parser Tools. that document is literally the front door to the entire system this package is part of. it's the entrypoint, the main character, the whole vibe. πͺβ¨
and now the plot twist that lowkey eats: this package does not exist. there is genuinely no need for it. no cap. π
here's why, and it's kind of iconic actually: the CONTAINER format for parsing expression grammars is just a piece of Tcl code. you source it, and boom β it hands you a class whose instances already have the grammar we want to import loaded. π
another way to look at it: the CONTAINER output is its own import package. it's self-importing. it's doing the most and needing nothing from anyone. periodt. π
π BUGS, IDEAS, FEEDBACK
real talk: this document, and the package it describes, will undoubtedly contain bugs and other problems. no software is safe, not even this one. π
so if you find something, please report it in the category pt of the Tcllib Trackers at http://core.tcl.tk/tcllib/reportlist. also β and this part matters β if you have ideas for enhancements for either the package and/or the documentation, send those in too. we want them. we're obsessed with them actually. π«Ά
when you're proposing code changes, please bring unified diffs, i.e. the output of diff -u. that's the format. that's the assignment. π
also note: attachments are strongly preferred over inlined patches. the way to do it is to go to the Edit form of the ticket immediately after its creation, and then use the left-most button in the secondary navigation bar. left-most. don't forget. π―
π₯ 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
π¦ CATEGORY
Parsing and Grammars
π COPYRIGHT
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page, bestie. this one came to you from tcllib, version 0, and it's the pt::peg::import::container(n) page β so if you ever forget where you read it, that's the receipt. π stay parsing, stay slaying, ily. β¨ππ¦
π¦ 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