Class K2M

java.lang.Object
  extended by K2M

public class K2M
extends java.lang.Object

This class is an entry point to the kanga-to-mips translator functionality testing unit. The program's interface is as required by Homework 6 specification.
Sample usage (where input is a file containing the input expression string):

java K2M < input

The driver program first parses the source file to create an abstract syntax tree. Then, a MIPSTranslator visitor then visits the AST and prints to the standard output stream a translated MIPS code.

Author:
Santoso Wijaya
See Also:
MIPSTranslator

Constructor Summary
K2M()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

K2M

public K2M()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        ParseException
Throws:
java.io.IOException
ParseException