page_util_peg(n) | Parser generator tools | page_util_peg(n) |
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.This command updates the cross-references and which nonterminals are now undefined.
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, will undoubtedly contain bugs and other problems. Please report such in the category page of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have.
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 | page |