pt::cparam:...tion::critcl(3tcl)
pt::cparam::configuration::critcl π
okay bestie, so this is a page from the Tcllib Parser Tools manual, living in the 3tcl section of your friendly neighbourhood man pages. Let's get into it β¨
πΈ NAME πΈ
pt::cparam::configuration::critcl β C/PARAM, Canned configuration, Critcl
β¨ SYNOPSIS β¨
package require Tcl 8.5 9
package require pt::cparam::configuration::critcl ?1.0.3?
::pt::cparam::configuration::critcl def name pkg version cmdprefix
π DESCRIPTION π
Are you lost, bestie? π Is this document giving you a headache and refusing to make sense? If that's the vibe, pls go read the overview in the Introduction to Parser Tools. That doc is literally the entrypoint to the whole system that this package is part of, iykyk.
So here's the tea π: this package is an adjunct to pt::peg::to::cparam. That package is highly configurable, which is iconic but also kind of a lot, so this one exists to make your life easier by handing you a canned configuration. When you apply this configuration, it makes pt::peg::to::cparam generate critcl-based parser packages. Slay. π
It's a supporting package in the Core Layer of Parser Tools.
IMAGE: arch_core_support
π API π
::pt::cparam::configuration::critcl def name pkg version cmdprefix
This command takes the configuration that this package provides and applies it to the cmdprefix, which causes the creation of critcl-based parsers whose class is name, in package pkg with version. Main character energy, fr fr.
The way that using a command prefix as the API is such a flex π«Ά β it means you can apply this configuration not only to pt::peg::to::cparam (aka pt::peg::to::cparam configure), but also to export manager instances and PEG containers, via $export configuration set and [$container exporter] configuration set respectively.
Or literally any other command prefix that accepts two arguments: option and value. Periodt. π
π BUGS, IDEAS, FEEDBACK π
Ngl, this document and the package it describes will undoubtedly contain bugs and other problems. That's just how it is. π So please report them in the category pt of the Tcllib Trackers at [http://core.tcl.tk/tcllib/reportlist]. And if you have ideas for enhancements for either the package and/or the documentation, send those too, bestie, we want them π
When you're proposing code changes, please provide unified diffs, i.e. the output of diff -u.
Also note: attachments are strongly preferred over inlined patches π You can attach stuff by going to the Edit form of the ticket right after you create it, and then using the left-most button in the secondary navigation bar. Yes, that one. The left-most one. 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
π CATEGORY π
Parsing and Grammars
π COPYRIGHT π
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
okay that's the whole page, no cap π§ this came to you from tcllib, version 1.0.3, and it's the pt::cparam:...tion::critcl(3tcl) page β go forth and configure your critcl parsers, you absolute legend πβ¨
π¦ 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