Package examples.anbn

Class RunAnBn


  • public class RunAnBn
    extends RunTests
    Uses the grammar for the strings anbn, n > 0, for a comparison of timing and node hits between the normal CFG grammar and the use of UDT functions.
    • Constructor Summary

      Constructors 
      Constructor Description
      RunAnBn​(java.lang.String testName, int reps, java.io.PrintStream out)
      Constructor for the test.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RunAnBn

        public RunAnBn​(java.lang.String testName,
                       int reps,
                       java.io.PrintStream out)
        Constructor for the test. Parameters are supplied explicitly or by default from the command line to the driver function.
        Parameters:
        testName - the name of the test
        reps - the number of repetitions of the parser
        out - the output device