Tcl Library Source Code

pt::cparam::configuration::tea - Parser Tools

[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

pt::cparam::configuration::tea(n) 0.1 tcllib "Parser Tools"


pt::cparam::configuration::tea - C/PARAM, Canned configuration, TEA


  • package require Tcl 8.5
  • package require pt::cparam::configuration::tea ?0.1?


Are you lost ? Do you have trouble understanding this document ? In that case please read the overview provided by the Introduction to Parser Tools. This document is the entrypoint to the whole system the current package is a part of.

This package is an adjunct to pt::peg::to::cparam, to make the use of this highly configurable package easier by providing a canned configuration. When applied this configuration causes the package pt::peg::to::cparam to generate plain parser code ready for inclusion into a TEA-based C extension.

It is a supporting package in the Core Layer of Parser Tools.



::pt::cparam::configuration::tea def name pkg version cmdprefix

The command applies the configuration provided by this package to the cmdprefix, causing the creation of tea-based parsers whose class is name, in package pkg with version.

The use of a command prefix as API allows application of the configuration to not only pt::peg::to::cparam (pt::peg::to::cparam configure), but also export manager instances and PEG containers ($export configuration set and [$container exporter] configuration set respectively).

Or anything other command prefix accepting two arguments, option and value.

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category pt of the Tcllib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.


Parsing and Grammars