danbikel.parser.util
Class KeepNodes
java.lang.Object
danbikel.parser.util.KeepNodes
public class KeepNodes
- extends Object
Provides a utility method, as well as a main(java.lang.String[])
method that invokes it,
to keep only certain nodes in a tree, deleting all others, except the root
node, which is never deleted.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeepNodes
public KeepNodes()
keepNodes
public static Sexp keepNodes(Sexp tree,
List<Nonterminal> nodesToKeep)
usage
public static void usage()
main
public static void main(String[] args)
Author: Dan Bikel.