Class Sparser

java.lang.Object
  |
  +--Sparser

public class Sparser
extends java.lang.Object

Sparser.java recursively pareses the deck that is passed to it. It is a complete tree traversal parse, but will break at the first successful parse if the correct flag is set continues the parse started by the NPparser, and contains the rules that the NPparser had


Constructor Summary
Sparser(DATA info)
          NPparser Constructor
 
Method Summary
 boolean run(java.util.LinkedList deck_in, TripleStack ttable_in, java.util.Vector parsed_decks, boolean short_circut)
          A recursive parsing routine that will parse the deck passed and will put the triples of all possible complete parses in a vector of TripleStacks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sparser

public Sparser(DATA info)
NPparser Constructor
Parameters:
info - Takes in a DATA node to set the local copy of s_rules and features
Method Detail

run

public boolean run(java.util.LinkedList deck_in,
                   TripleStack ttable_in,
                   java.util.Vector parsed_decks,
                   boolean short_circut)
A recursive parsing routine that will parse the deck passed and will put the triples of all possible complete parses in a vector of TripleStacks. The routine will break at the first successful complete parse if the short_circut flag is set.
Parameters:
deck_in - the current deck that was the product of the NPparser
ttable_in - The TripleStack that was generated by the NPparser
parsed_decks - The vector that will contain all the possible TripleStack that come from complete parses
short_circut - A boolean flag that determines if the parse will break at the first complete parse
Returns:
flag that tells if the parse had a complete parse and the short_circut flag was set