pt::peg::import::container(n)

πŸ“¦
version 2.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– 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 (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