pt::tclpara...guration::nx(3tcl)
β¨ NAME β¨
pt::tclparam::configuration::nx β Tcl/PARAM, Canned configuration, NX π
so this is a page from the Parser Tools manual, section 3tcl, and it's all about a little package that hands you a ready-made config so you don't have to build one yourself. bestie energy, zero setup stress. π
πΈ SYNOPSIS πΈ
package require Tcl 8.5 9
package require pt::tclparam::configuration::nx ?1.0.2?
::pt::tclparam::configuration::nx def name pkg version cmdprefix
π DESCRIPTION π
okay so, are you lost? π are you out here having trouble understanding this whole document? it happens, no shame. if that's you, 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 part of. start there, bestie. π«Ά
so what is this package? it's an adjunct to pt::peg::to::tclparam. that package is highly configurable, which is iconic but also a lot, so this one exists to make using it way easier by handing you a canned configuration. when you apply it, it makes pt::peg::to::tclparam generate NX-based parser packages. slay. β¨
also it's a supporting package in the Core Layer of Parser Tools. so it's lowkey part of the main character infrastructure. π
IMAGE: arch_core_support
π¦ API π¦
::pt::tclparam::configuration::nx def name pkg version cmdprefix
this command applies the configuration this package provides to the cmdprefix, which makes NX-based parsers get created β parsers whose class is name, living in package pkg, with version. π«
the reason it takes a command prefix as its API (instead of just being hardwired to one thing) is so you can apply this configuration to more than just pt::peg::to::tclparam:
- plain old
pt::peg::to::tclparamβ viapt::peg::to::tclparam configure - export manager instances β via
$export configuration set - PEG containers β via
[$container exporter] configuration set
or literally anything else that's a command prefix accepting two arguments: an option and a value. fr fr, that's the whole vibe check. π
π BUGS, IDEAS, FEEDBACK π
ngl, this document and the package it describes will undoubtedly contain bugs and other problems. π please report them in the category pt of the Tcllib Trackers at http://core.tcl.tk/tcllib/reportlist. and if you've got ideas for enhancements β for the package, for the docs, for either one β send those in too. we want them. π«Ά
when you propose code changes, please provide unified diffs, aka the output of diff -u. periodt.
also important: attachments are strongly preferred over inlined patches. to attach one, go to the Edit form of the ticket right after you create it, then use the left-most button in the secondary navigation bar. iykyk. π
β 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 ships as part of tcllib, version 1.0.2 β go forth and generate your NX parsers, you've absolutely got this. πβ¨π¦
π¦ 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