diva.sketch.parser2d
Class TestParser

java.lang.Object
  |
  +--diva.sketch.parser2d.TestParser

public class TestParser
extends java.lang.Object

Test the parser.

Version:
$Revision: 1.1 $

Constructor Summary
TestParser()
           
 
Method Summary
static void debug(java.lang.String s)
          Debugging output.
static void main(java.lang.String[] argv)
           
static ConstituentSet makeConstituentSet(java.lang.String s)
          Make a constituent for string (left-to-right adjacency) relationships.
static Rule makeRule(java.lang.String s)
          Make a rule for string (left-to-right adjacency) relationships.
static Rule[] makeRules(java.lang.String[] rs)
          Convenience: make a set of rules using makeRule()
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestParser

public TestParser()
Method Detail

main

public static void main(java.lang.String[] argv)

debug

public static void debug(java.lang.String s)
Debugging output.

makeRules

public static Rule[] makeRules(java.lang.String[] rs)
Convenience: make a set of rules using makeRule()

makeRule

public static Rule makeRule(java.lang.String s)
                     throws java.lang.IllegalArgumentException
Make a rule for string (left-to-right adjacency) relationships. For testing, of course.

Inputs are of the form:

   LHS : RHS1 RHS2 ...
 

makeConstituentSet

public static ConstituentSet makeConstituentSet(java.lang.String s)
Make a constituent for string (left-to-right adjacency) relationships. For testing, of course.