dspl.backend.test
Class IntermediateTestCase

java.lang.Object
  extended by dspl.backend.test.IntermediateTestCase
Direct Known Subclasses:
HelloWorldv1

public abstract class IntermediateTestCase
extends java.lang.Object

Base abstract class for other classes to extend which generate the intermediate format required for the backend to finish compiling.

The intent is to allow the testing of back-end features by manually compiling the expected intermediate format, rather than having to wait for the front end to be completed before being able to test the back-end compiling asm.

Author:
David

Field Summary
 Instruction firstInst
           
 SymbolTable st
           
 
Constructor Summary
IntermediateTestCase()
           
 
Method Summary
 Instruction getFirstInstr()
          Get the First Instruction represneting the Test Case Program
 SymbolTable getSymbolTable()
          Get the symbol table
abstract  java.lang.String getTestCaseName()
          Returns the test case name
Example "HelloWorldv1";
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

firstInst

public Instruction firstInst

st

public SymbolTable st
Constructor Detail

IntermediateTestCase

public IntermediateTestCase()
Method Detail

getFirstInstr

public Instruction getFirstInstr()
Get the First Instruction represneting the Test Case Program

Returns:
first Instruction in the test case program

getSymbolTable

public SymbolTable getSymbolTable()
Get the symbol table

Returns:
symboltable

getTestCaseName

public abstract java.lang.String getTestCaseName()
Returns the test case name
Example "HelloWorldv1";

Returns: