Package examples.demo

Class DisplayAst


  • public class DisplayAst
    extends RunTests
    A simple demonstration of how to generate and display an Abstract Syntax Tree (AST). The source code should be consulted for details.
    • Constructor Summary

      Constructors 
      Constructor Description
      DisplayAst​(java.lang.String testName, 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

      • DisplayAst

        public DisplayAst​(java.lang.String testName,
                          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
        out - the output device