Parsing Engine

danbikel.parser.util
Class KeepNodes

java.lang.Object
  extended by 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.


Constructor Summary
KeepNodes()
           
 
Method Summary
static Sexp keepNodes(Sexp tree, List<Nonterminal> nodesToKeep)
           
static void main(String[] args)
           
static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeepNodes

public KeepNodes()
Method Detail

keepNodes

public static Sexp keepNodes(Sexp tree,
                             List<Nonterminal> nodesToKeep)

usage

public static void usage()

main

public static void main(String[] args)

Parsing Engine

Author: Dan Bikel.