de.projectory.koivimatest
Class Main

java.lang.Object
  extended by de.projectory.koivimatest.Main

public class Main
extends java.lang.Object

Some test code for the virtual machine. This class may also be used to run files written in KoiViMa assembler.


Constructor Summary
Main()
           
 
Method Summary
 void evaluate(java.lang.String assemblyCode)
          Compiles and interprets a String of assembly code.
 void evaluateFile(java.lang.String filename)
          Compiles and interprets a piece of assembly code.
static void main(java.lang.String[] args)
          Starts a program that is able to read programs from file and execute them.
 void runTestCases()
          Evaluates a set of given test cases.
protected  void testCasePrintString()
          Builds a program out of objects and prints Hello World
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

testCasePrintString

protected void testCasePrintString()
Builds a program out of objects and prints Hello World


runTestCases

public void runTestCases()
Evaluates a set of given test cases.


evaluate

public void evaluate(java.lang.String assemblyCode)
Compiles and interprets a String of assembly code.


evaluateFile

public void evaluateFile(java.lang.String filename)
Compiles and interprets a piece of assembly code.

Parameters:
filename - Name of a file containing a program written in KoiViMa assembly language.

main

public static void main(java.lang.String[] args)
Starts a program that is able to read programs from file and execute them.

Parameters:
args - First argument should be the name of the file containing the program to be executed.