page_util_peg(3tcl) | Parser generator tools | page_util_peg(3tcl) |
page_util_peg - page PEG transformation utilities
package require page::util::peg ?0.1?
package require snit
::page::util::peg::symbolNodeOf tree node
::page::util::peg::symbolOf tree node
::page::util::peg::updateUndefinedDueRemoval tree
::page::util::peg::flatten treequery tree
::page::util::peg::getWarnings tree
::page::util::peg::printWarnings msg
::page::util::peg::peOf tree eroot
::page::util::peg::printTclExpr pe
This package provides a few common operations to PEG transformations. They assume a Normalized PE Grammar Tree as input, see the package page::util::norm::peg, possibly augmented with attributes coming from transformations not in conflict with the base definition.
A used by B and C, B is reachable, C is not, so A now loses the node in the expression for C calling it, or rather, not calling it anymore.
The result of the command is a dictionary mapping nonterminal names to their associated warnings.
The warnings contained therein are formatted and then printed via the log command page_info. This means that this command can be used only from within a plugin managed by the package page::pluginmgr.
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category page of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please also report any ideas for enhancements you may have for either package and/or documentation.
When proposing code changes, please provide unified diffs, i.e the output of diff -u.
Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.
PEG, page, parser generator, parsing expression grammar, text processing, transformation
Page Parser Generator
Copyright (c) 2007 Andreas Kupries <andreas_kupries@users.sourceforge.net>
1.0 | tcllib |